mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Remove another open 'U' flag.
This commit is contained in:
parent
69bc90f5b4
commit
be740d0bcd
@ -1132,7 +1132,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
except UnicodeError:
|
||||
logger.exception("UnicodeError reading old ship loadout with utf-8 encoding, trying without...")
|
||||
try:
|
||||
with open(join(config.get('outdir'), oldfiles[-1]), 'rU') as h: # type: ignore
|
||||
with open(join(config.get('outdir'), oldfiles[-1]), 'r') as h: # type: ignore
|
||||
if h.read() == string:
|
||||
return # same as last time - don't write
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user