mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-07-10 01:23:30 +00:00
do catch all exception
This commit is contained in:
parent
a0f088be25
commit
23bbc60b1c
1 changed files with 4 additions and 0 deletions
|
|
@ -486,6 +486,10 @@ class FileFilter(Filter):
|
|||
logSys.error("Error opening %s" % filename)
|
||||
logSys.exception(e)
|
||||
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:
|
||||
line = container.readline()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue