Merge pull request #87 from ticketfrei/fix-none-error

fixed wrong exception
pull/1/head
b3yond 2019-05-03 17:11:25 +02:00 committed by GitHub
commit c30f9d8eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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: