diff options
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: | |||
1044 | a subclass of StreamListener which will receive callbacks for incoming | 1044 | a subclass of StreamListener which will receive callbacks for incoming |
1045 | events. | 1045 | events. |
1046 | """ | 1046 | """ |
1047 | if tag.startswith("#"): | ||
1048 | raise MastodonIllegalArgumentError("Tag parameter should omit leading #") | ||
1047 | return self.__stream("/api/v1/streaming/hashtag?tag={}".format(tag), listener) | 1049 | return self.__stream("/api/v1/streaming/hashtag?tag={}".format(tag), listener) |
1048 | 1050 | ||
1049 | ### | 1051 | ### |