1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

removed bare except clauses

This commit is contained in:
A_D 2020-07-19 18:18:43 +02:00 committed by Athanasius
parent bf74e3647f
commit f95bfd4280

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()