From 23bbc60b1ccebb71df499aadbab2e19f8c38737f Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 10 Mar 2013 17:10:40 +1100 Subject: [PATCH] do catch all exception --- server/filter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/filter.py b/server/filter.py index ceda1377..35da1953 100644 --- a/server/filter.py +++ b/server/filter.py @@ -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()