- Do not exit on exception. Continue and wait for an unhandled exception

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@176 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.5
Cyril Jaquier 20 years ago
parent 7e0e005e24
commit 9548edaff0

@ -89,7 +89,7 @@ class LogReader:
fileHandler = open(self.logPath)
except OSError:
logSys.error("Unable to open "+self.logPath)
sys.exit(-1)
return fileHandler
def isModified(self):
@ -99,7 +99,6 @@ class LogReader:
self.logStats = os.stat(self.logPath)
except OSError:
logSys.error("Unable to get stat on "+self.logPath)
sys.exit(-1)
if self.lastModTime == self.logStats.st_mtime:
return False

Loading…
Cancel
Save