diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 000eb55..9df51ea 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -299,7 +299,7 @@ class Mastodon: Returns a list of toot dicts. """ if hashtag.startswith("#"): - throw MastodonIllegalArgumentError("Hashtag parameter should omit leading #") + raise MastodonIllegalArgumentError("Hashtag parameter should omit leading #") if max_id != None: max_id = self.__unpack_id(max_id)