mirror of https://github.com/fail2ban/fail2ban
do catch all exception
parent
a0f088be25
commit
23bbc60b1c
|
@ -486,6 +486,10 @@ class FileFilter(Filter):
|
||||||
logSys.error("Error opening %s" % filename)
|
logSys.error("Error opening %s" % filename)
|
||||||
logSys.exception(e)
|
logSys.exception(e)
|
||||||
return False
|
return False
|
||||||
|
except OSError, e: # pragma: no cover - Requires implemention error in FileContainer to generate
|
||||||
|
logSys.error("Internal errror in FileContainer open method - please report as a bug to https://github.com/fail2ban/fail2ban/issues")
|
||||||
|
logSys.exception(e)
|
||||||
|
return False
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
line = container.readline()
|
line = container.readline()
|
||||||
|
|
Loading…
Reference in New Issue