|
|
@ -156,10 +156,10 @@ class Fail2banClient:
|
|
|
|
if showRet:
|
|
|
|
if showRet:
|
|
|
|
print beautifier.beautify(ret[1])
|
|
|
|
print beautifier.beautify(ret[1])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
ret = False
|
|
|
|
|
|
|
|
logSys.error("NOK: " + `ret[1].args`)
|
|
|
|
logSys.error("NOK: " + `ret[1].args`)
|
|
|
|
if showRet:
|
|
|
|
if showRet:
|
|
|
|
print beautifier.beautifyError(ret[1])
|
|
|
|
print beautifier.beautifyError(ret[1])
|
|
|
|
|
|
|
|
ret = False
|
|
|
|
except socket.error:
|
|
|
|
except socket.error:
|
|
|
|
if showRet:
|
|
|
|
if showRet:
|
|
|
|
logSys.error("Unable to contact server. Is it running?")
|
|
|
|
logSys.error("Unable to contact server. Is it running?")
|
|
|
|