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 2018-09-13 14:29:27 +02:00
родитель fe73313da1
Коммит 0a8c6e2481
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 063938BA42CFA724

Просмотреть файл

@ -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