diff options
Diffstat (limited to 'cogs/twitter.py')
-rwxr-xr-x | cogs/twitter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/twitter.py b/cogs/twitter.py index d633b8e..ff2ea8f 100755 --- a/cogs/twitter.py +++ b/cogs/twitter.py @@ -11,7 +11,7 @@ class StreamListener(tweepy.StreamListener): with open("./config.json") as f: self.config = json.load(f) - def on_error(self, status_code): + def on_error(self, status_code: int) -> bool: if status_code == 420: print("Rate limit reached. ") # returning False in on_error disconnects the stream |