From 331ae7155a6563c655dc23e2af610bdba596edbe Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Tue, 4 Mar 2008 23:09:30 +0000 Subject: [PATCH] - Catch Exception instead of AttributeError. git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@659 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- client/jailreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/jailreader.py b/client/jailreader.py index 58e87381d..5ba44034e 100644 --- a/client/jailreader.py +++ b/client/jailreader.py @@ -90,7 +90,7 @@ class JailReader(ConfigReader): self.__actions.append(action) else: raise AttributeError("Unable to read action") - except AttributeError, e: + except Exception, e: logSys.error("Error in action definition " + act) logSys.debug(e) return False