mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-02 01:32:38 +03:00
Attempt writing new file if reading old one fails for any reason.
This commit is contained in:
1 parent
fd03bf6427
commit
5fcafe52d3
1 file changed
+2
-4
+2
-4
@@ -1010,12 +1010,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
return # same as last time - don't write
|
||||
|
||||
except OSError:
|
||||
logger.exception("OSError reading old ship loadout default encoding, aborting.")
|
||||
return
|
||||
logger.exception("OSError reading old ship loadout default encoding.")
|
||||
|
||||
except OSError:
|
||||
logger.exception("OSError reading old ship loadout with default encoding, aborting.")
|
||||
return
|
||||
logger.exception("OSError reading old ship loadout with default encoding")
|
||||
|
||||
# Write
|
||||
filename = join( # type: ignore
|
||||
|
||||
Reference in new issue
Block a user