- Catched exception if no "Definition" section found

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@288 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 2006-08-22 21:59:51 +00:00
parent 432bd3a04c
commit acf3b52e18
1 changed files with 3 additions and 0 deletions

View File

@ -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 + "'")