Skip to content
Snippets Groups Projects
Commit bb14fd70 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

add: comment

parent 14c96865
Branches server
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ def get_weather(self): ...@@ -78,7 +78,7 @@ def get_weather(self):
else: # Add error message if no weather data is found or the request fails else: # Add error message if no weather data is found or the request fails
print(f"Request to weather API failed with status code {response.status_code}") print(f"Request to weather API failed with status code {response.status_code}") #NB: append error message to weather_data
status_code = response.status_code status_code = response.status_code
# Set headers # Set headers
......
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