fixed wrong exception

This commit is contained in:
b3yond 2019-02-19 16:16:21 +01:00
parent eb2bf5a063
commit 35bbe5f075

View file

@ -73,7 +73,7 @@ class TwitterBot(Bot):
def post(self, user, report):
try:
api = self.get_api(user)
except IndexError:
except TypeError:
return # no twitter account for this user.
try:
if report.source == self: