Mercurial > libervia-web
comparison src/browser/sat_browser/contact_list.py @ 592:c66f7227848e frontends_multi_profiles
browser side: fixed an error catch in contact_list module (raised error depend on pyama's compilation options)
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 03 Feb 2015 14:35:47 +0100 |
parents | a5019e62c3e9 |
children | a099990f77a6 |
comparison
equal
deleted
inserted
replaced
589:a5019e62c3e9 | 592:c66f7227848e |
---|---|
346 ### GROUPS ### | 346 ### GROUPS ### |
347 _keys = self._groups.keys() | 347 _keys = self._groups.keys() |
348 try: | 348 try: |
349 # XXX: Pyjamas doesn't do the set casting if None is present | 349 # XXX: Pyjamas doesn't do the set casting if None is present |
350 _keys.remove(None) | 350 _keys.remove(None) |
351 except KeyError: | 351 except (KeyError, ValueError): # XXX: error raised depend on pyjama's compilation options |
352 pass | 352 pass |
353 current_groups = set(_keys) | 353 current_groups = set(_keys) |
354 shown_groups = self._group_panel.getGroups() | 354 shown_groups = self._group_panel.getGroups() |
355 new_groups = current_groups.difference(shown_groups) | 355 new_groups = current_groups.difference(shown_groups) |
356 removed_groups = shown_groups.difference(current_groups) | 356 removed_groups = shown_groups.difference(current_groups) |