diff src/browser/sat_browser/base_panels.py @ 577:e1a773a64fb6

browser_side: fixes the display of MUC occupants presences
author souliane <souliane@mailoo.org>
date Sat, 18 Oct 2014 14:47:47 +0200
parents 12823bcbd05b
children 0a06cf833f5a
line wrap: on
line diff
--- a/src/browser/sat_browser/base_panels.py	Fri Oct 17 20:38:38 2014 +0200
+++ b/src/browser/sat_browser/base_panels.py	Sat Oct 18 14:47:47 2014 +0200
@@ -128,7 +128,10 @@
 
         @return: Occupant
         """
-        return self.occupants_list[nick]
+        try:
+            return self.occupants_list[nick]
+        except KeyError:
+            return None
 
     def clear(self):
         self.occupants_list.clear()