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"
This commit is contained in:
parent
fe73313da1
commit
0a8c6e2481
@ -125,7 +125,8 @@ class EventsDispatcher(object):
|
|||||||
try:
|
try:
|
||||||
yield from self._listen_for_events(vm)
|
yield from self._listen_for_events(vm)
|
||||||
except (ConnectionRefusedError, ConnectionResetError,
|
except (ConnectionRefusedError, ConnectionResetError,
|
||||||
FileNotFoundError):
|
FileNotFoundError,
|
||||||
|
qubesadmin.exc.QubesDaemonCommunicationError):
|
||||||
pass
|
pass
|
||||||
if not reconnect:
|
if not reconnect:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user