forked from clan/clan-core
fix formatting
This commit is contained in:
parent
1918cfd707
commit
d12019d290
@ -138,7 +138,7 @@ class QEMUMonitorProtocol:
|
||||
self.__sock.settimeout(wait)
|
||||
try:
|
||||
ret = self.__json_read(only_event=True)
|
||||
except socket.timeout:
|
||||
except TimeoutError:
|
||||
raise QMPTimeoutError("Timeout waiting for event")
|
||||
except Exception:
|
||||
raise QMPConnectError("Error while reading from socket")
|
||||
|
Loading…
Reference in New Issue
Block a user