events: fix cleanup function in qrexec case

qrexec-client-vm process may be already dead, don't treat this as an
error.
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-06 21:36:31 +02:00
parent e6149b09ce
commit b35303ff62
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -95,7 +95,10 @@ class EventsDispatcher(object):
def cleanup_func():
'''Close connection to qubesd'''
proc.kill()
try:
proc.kill()
except ProcessLookupError:
pass
else:
raise NotImplementedError('Unsupported qubesd connection type: '
+ self.app.qubesd_connection_type)