excepted with wrong Exception

This commit is contained in:
b3yond 2018-10-11 21:30:55 +02:00
parent 56e948b798
commit cc5ab22be5

View file

@ -36,7 +36,7 @@ class TwitterDMListener(Bot):
user.set_last_twitter_request(time()) user.set_last_twitter_request(time())
try: try:
api = self.get_api(user) api = self.get_api(user)
except IndexError: except TypeError:
return reports # no twitter account for this user. return reports # no twitter account for this user.
last_dm = user.get_seen_dm() last_dm = user.get_seen_dm()
try: try: