Commit c5d64d07 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eterban_switcher.py: return error on redis connection error

parent 166be6f8
......@@ -226,8 +226,8 @@ try:
p.subscribe('ban', 'unban', 'by')
except:
print ("Enable to connect redes")
sys.exit()
print ("Unable to connect redis")
sys.exit(1)
restore_ipset_eterban_1()
create_iptables_rules()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment