From 0a8c6e248190ed73a77252935e80ddc3a99f7f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 13 Sep 2018 14:29:27 +0200 Subject: [PATCH] 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" --- qubesadmin/events/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesadmin/events/__init__.py b/qubesadmin/events/__init__.py index 3c69878..2f0487f 100644 --- a/qubesadmin/events/__init__.py +++ b/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