diff --git a/monitor.py b/monitor.py index 9f073faf..6e377f49 100644 --- a/monitor.py +++ b/monitor.py @@ -138,7 +138,7 @@ class EDLogs(FileSystemEventHandler): self.logfile = logfiles and join(self.currentdir, logfiles[-1]) or None - except: + except Exception: self.logfile = None return False @@ -230,7 +230,7 @@ class EDLogs(FileSystemEventHandler): try: self.parse_entry(line) # Some events are of interest even in the past - except: + except Exception: if __debug__: print('Invalid journal entry "%s"' % repr(line)) @@ -289,7 +289,7 @@ class EDLogs(FileSystemEventHandler): newlogfile = logfiles and join(self.currentdir, logfiles[-1]) or None - except: + except Exception: if __debug__: print_exc() @@ -746,7 +746,7 @@ class EDLogs(FileSystemEventHandler): self.state['Friends'].discard(entry['Name']) return entry - except: + except Exception: if __debug__: print('Invalid journal entry "%s"' % repr(line)) print_exc()