From f95bfd4280e3d2de0083158f2c7c10b07ad9f708 Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 19 Jul 2020 18:18:43 +0200 Subject: [PATCH] removed bare except clauses --- monitor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()