1
0
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:
A_D 2022-01-20 23:20:10 +02:00
parent a5317e984f
commit 3814f9ebb9
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

@ -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: