From 917cd06677c48ffcb496da0aa4640940bc316d0c Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 20 Dec 2014 16:23:17 +0100 Subject: [PATCH] fix crash when a contact has been removed --- modules/tinder/module.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/tinder/module.py b/modules/tinder/module.py index 0ec6ca36..31d5ddd7 100644 --- a/modules/tinder/module.py +++ b/modules/tinder/module.py @@ -97,6 +97,11 @@ class TinderModule(Module, CapMessages, CapMessagesPost, CapDating): def iter_threads(self): for thread in self.browser.get_threads(): + if not 'person' in thread: + # The account has been removed, probably because it was a + # spammer. + continue + t = Thread(thread['_id']) t.flags = Thread.IS_DISCUSSION t.title = u'Discussion with %s' % thread['person']['name']