excepted with wrong Exception
This commit is contained in:
parent
56e948b798
commit
cc5ab22be5
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue