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