mirror of https://github.com/fail2ban/fail2ban
- Catched exception if no "Definition" section found
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@288 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
432bd3a04c
commit
acf3b52e18
|
@ -77,6 +77,9 @@ class ConfigReader(SafeConfigParser):
|
|||
if not pOptions == None and option[1] in pOptions:
|
||||
continue
|
||||
values[option[1]] = v
|
||||
except NoSectionError, e:
|
||||
# No "Definition" section or wrong basedir
|
||||
logSys.error(e)
|
||||
except NoOptionError:
|
||||
if not option[2] == None:
|
||||
logSys.warn("No '" + option[1] + "' defined in '" + sec + "'")
|
||||
|
|
Loading…
Reference in New Issue