mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 01:22:19 +03:00
Quick fix to a type warning
This commit is contained in:
parent
a5317e984f
commit
3814f9ebb9
@ -168,6 +168,10 @@ class EDDN:
|
||||
|
||||
def flush(self):
|
||||
"""Flush the replay file, clearing any data currently there that is not in the replaylog list."""
|
||||
if self.replayfile is None:
|
||||
logger.warning('replayfile is None!')
|
||||
return
|
||||
|
||||
self.replayfile.seek(0, SEEK_SET)
|
||||
self.replayfile.truncate()
|
||||
for line in self.replaylog:
|
||||
|
Loading…
x
Reference in New Issue
Block a user