BF: fail2ban-regex fix for maxlines init option reader

This commit is contained in:
Steven Hiscocks 2013-05-09 23:37:52 +01:00
parent 7a86d30c6d
commit c98b01bd1d

View file

@ -213,7 +213,7 @@ class Fail2banRegex:
# Read out and set possible value of maxlines
try:
maxlines = reader.get("Init", "maxlines")
except NoSectionError, NoOptionError:
except (NoSectionError, NoOptionError):
# No [Init].maxlines found.
pass
else: