Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KarthigaSivaraman authored Sep 6, 2024
1 parent 503cfd1 commit 5357aa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def get_current_temperature(latitude, longitude):
current_weather = data.get('current', {})
return current_weather.get('temperature')
except requests.RequestException as e:

print("Testing")
print(f"An error occurred while fetching temperature: {e}")
return jsonify(error=str(e)), 500

Expand Down

0 comments on commit 5357aa1

Please sign in to comment.