diff frontends/src/primitivus/chat.py @ 1988:3f0d22565684

primitivus (chat): fixed a crash when page-up was pressed on room contacts list
author Goffi <goffi@goffi.org>
date Fri, 01 Jul 2016 00:00:12 +0200
parents ab439ffe4113
children 981e2abbb56c
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py	Fri Jul 01 00:00:11 2016 +0200
+++ b/frontends/src/primitivus/chat.py	Fri Jul 01 00:00:12 2016 +0200
@@ -157,6 +157,8 @@
         super(OccupantWidget, self).__init__(urwid.Text(markup))
 
     def __eq__(self, other):
+        if other is None:
+            return False
         return self.occupant_data.nick == other.occupant_data.nick
 
     def __lt__(self, other):