From 87fe7c1d59fa32ce9693368c141647fa30e026b8 Mon Sep 17 00:00:00 2001 From: b3yond Date: Thu, 11 Oct 2018 21:30:55 +0200 Subject: [PATCH] excepted with wrong Exception --- active_bots/twitterDMs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_bots/twitterDMs.py b/active_bots/twitterDMs.py index 5a23472..a289c0a 100644 --- a/active_bots/twitterDMs.py +++ b/active_bots/twitterDMs.py @@ -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: