mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Fix pep8 W602 "deprecated form of raising exception"
This commit is contained in:
parent
3e3d1e0cf6
commit
2310ac44c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue