removed bare except clauses

This commit is contained in:
A_D authored and Athanasius committed 2020-07-26 23:08:47 +01:00
1 parent bf74e3647f
commit f95bfd4280
1 file changed
+4 -4
+4 -4
View File
@@ -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()