fix print file=stderr

This commit is contained in:
2020-06-15 19:12:14 +02:00
parent 1d247b1911
commit c6a74cab3d

View File

@@ -79,7 +79,7 @@ def singleEvent():
fileLastModified = dt.datetime.fromtimestamp(os.path.getmtime(fullPath)) fileLastModified = dt.datetime.fromtimestamp(os.path.getmtime(fullPath))
maxAge = dt.timedelta(minutes=30) maxAge = dt.timedelta(minutes=30)
if dt.datetime.now() - fileLastModified > maxAge: if dt.datetime.now() - fileLastModified > maxAge:
print("Removed orphaned session file: {}".format(fullPath), sys.stderr) print("Removed orphaned session file: {}".format(fullPath), file=sys.stderr)
os.remove(fullPath) os.remove(fullPath)
if jsonDict["etype"] == ROUND_END_IDENT: if jsonDict["etype"] == ROUND_END_IDENT: