forked from ticketfrei/ticketfrei
Merge pull request #87 from ticketfrei/fix-none-error
fixed wrong exception
This commit is contained in:
commit
c30f9d8eaa
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue