mirror of https://github.com/fail2ban/fail2ban
BF: Added logging above ValueError, since only INVALID COMMAND is printed by calling method
parent
3282f86651
commit
e7dce7cc5a
|
@ -49,8 +49,10 @@ class Jail:
|
|||
if backend != 'auto':
|
||||
# we have got strict specification of the backend to use
|
||||
if not (backend in self._BACKENDS):
|
||||
logSys.error("Unknown backend %s. Must be among %s or 'auto'"
|
||||
% (backend, backends))
|
||||
raise ValueError("Unknown backend %s. Must be among %s or 'auto'"
|
||||
% (backend, backends))
|
||||
% (backend, backends))
|
||||
# so explore starting from it till the 'end'
|
||||
backends = backends[backends.index(backend):]
|
||||
|
||||
|
|
Loading…
Reference in New Issue