Catch RPCException in count_tab_domain

issue6325
review27171002
This commit is contained in:
Cédric Krier committed 2017-03-13 20:59:39 +01:00
1 parent 71a4f45265
commit 736cb486f1
1 file changed
+5 -1
+5 -1
View File
@@ -304,7 +304,11 @@ class Screen(SignalEvent):
def count_tab_domain(self):
def set_tab_counter(count, idx):
self.screen_container.set_tab_counter(count(), idx)
try:
count = count()
except RPCException:
count = None
self.screen_container.set_tab_counter(count, idx)
screen_domain = self.search_domain(self.screen_container.get_text())
for idx, (name, domain, count) in enumerate(
self.screen_container.tab_domain):