fix formatting
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user