mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: Added logging above ValueError, since only INVALID COMMAND is printed by calling method
This commit is contained in:
parent
3282f86651
commit
e7dce7cc5a
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue