Quick fix to a type warning

This commit is contained in:
A_D committed 2022-01-26 18:58:30 +02:00
1 parent a5317e984f
commit 3814f9ebb9
1 file changed
+4
+4
View File
@@ -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: