diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 9df51ea..2f84635 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1044,6 +1044,8 @@ class Mastodon: a subclass of StreamListener which will receive callbacks for incoming events. """ + if tag.startswith("#"): + raise MastodonIllegalArgumentError("Tag parameter should omit leading #") return self.__stream("/api/v1/streaming/hashtag?tag={}".format(tag), listener) ###