forgot to remove lock file

This commit is contained in:
nanos 2023-03-21 08:40:22 +00:00
parent 12bde97687
commit 200d3a155d

View file

@ -757,11 +757,11 @@ if __name__ == "__main__":
with open(REPLIED_TOOT_SERVER_IDS_FILE, "w", encoding="utf-8") as f:
json.dump(dict(list(REPLIED_TOOT_SERVER_IDS.items())[-10000:]), f)
# os.remove(LOCK_FILE)
os.remove(LOCK_FILE)
log(f"Processing finished in {datetime.now() - start}.")
except Exception as ex:
# os.remove(LOCK_FILE)
os.remove(LOCK_FILE)
log(f"Job failed after {datetime.now() - start}.")
raise