excepted with wrong Exception

coc
b3yond 2018-10-11 21:30:55 +02:00
parent 56e948b798
commit cc5ab22be5
1 changed files with 1 additions and 1 deletions

View File

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