mirror of https://github.com/fail2ban/fail2ban
Fix pep8 W602 "deprecated form of raising exception"
parent
3e3d1e0cf6
commit
2310ac44c7
|
@ -64,6 +64,6 @@ class CSocket:
|
|||
while msg.rfind(CSocket.END_STRING) == -1:
|
||||
chunk = sock.recv(6)
|
||||
if chunk == '':
|
||||
raise RuntimeError, "socket connection broken"
|
||||
raise RuntimeError("socket connection broken")
|
||||
msg = msg + chunk
|
||||
return loads(msg)
|
||||
|
|
Loading…
Reference in New Issue