diff --git a/qubesadmin/events/__init__.py b/qubesadmin/events/__init__.py index e44e6f3..ae35005 100644 --- a/qubesadmin/events/__init__.py +++ b/qubesadmin/events/__init__.py @@ -118,7 +118,8 @@ class EventsDispatcher(object): while True: try: yield from self._listen_for_events(vm) - except ConnectionRefusedError: + except (ConnectionRefusedError, ConnectionResetError, + FileNotFoundError): pass if not reconnect: break