Fixed a rare bug with locals() being changed during iteration

This commit is contained in:
2024-09-19 21:56:24 +02:00
parent 956c4c30ea
commit 19971e6e71
8 changed files with 8 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ def board_arrival(
payload = {}
headers = {"Accept": "application/json"} if json else {"Accept": "application/xml"}
for var, val in locals().items():
for var, val in locals().copy().items():
if str(var) == "date":
if val != None:
if isinstance(val, datetime):