Catch exceptions in various locations to fix small issues reported by Sentry.

This commit is contained in:
grossmj
2018-09-06 09:49:12 +02:00
parent 341e2e2e3a
commit 4021a13651
8 changed files with 63 additions and 40 deletions

View File

@ -1028,7 +1028,7 @@ class QemuVM(BaseNode):
if expect in line:
result = line.decode("utf-8").strip()
break
except EOFError as e:
except (ConnectionError, EOFError) as e:
log.warn("Could not read from QEMU monitor: {}".format(e))
writer.close()
return result