mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
- 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
This commit is contained in:
parent
7e0e005e24
commit
9548edaff0
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue