Skip to content
Snippets Groups Projects
Verified Commit 9fc64ac9 authored by Alexander Dunkel's avatar Alexander Dunkel
Browse files

fix: wrong order of variable access

parent 2b22ea3b
No related branches found
No related tags found
No related merge requests found
......@@ -329,10 +329,10 @@ if response.status_code == 429 \
or '<!DOCTYPE html>' in response.text:
print(f"Loading live json failed: {response.text[:250]}")
else:
json_text = response.text
# write to temporary file
with open(OUTPUT / f"live_{location_id}.json", 'w') as f:
f.write(json_text)
json_text = response.text
print("Loaded live json")
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment