浏览代码

events: fix reconnecting to qubesd on its restart

Since now event listener reports proper QubesDaemonCommunicationError
exception instead of some form of IOError. Include it for automatic
reconnect logic.

Fixes a481490 "app: fix error reporting when connection to qubesd fails"
Marek Marczykowski-Górecki 6 年之前
父节点
当前提交
0a8c6e2481
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      qubesadmin/events/__init__.py

+ 2 - 1
qubesadmin/events/__init__.py

@@ -125,7 +125,8 @@ class EventsDispatcher(object):
             try:
                 yield from self._listen_for_events(vm)
             except (ConnectionRefusedError, ConnectionResetError,
-                    FileNotFoundError):
+                    FileNotFoundError,
+                    qubesadmin.exc.QubesDaemonCommunicationError):
                 pass
             if not reconnect:
                 break