Fixed a rare bug with locals() being changed during iteration
This commit is contained in:
@@ -55,7 +55,7 @@ def journey_detail(
|
||||
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) == "rtMode":
|
||||
if val != None:
|
||||
payload["rtMode"] = val.upper()
|
||||
|
Reference in New Issue
Block a user