Update main.py
This commit is contained in:
2
main.py
2
main.py
@ -36,7 +36,7 @@ def get_weather():
|
|||||||
"hourly": hourly
|
"hourly": hourly
|
||||||
})
|
})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("❌ Error fetching data:", e)
|
print("Error fetching data:", e)
|
||||||
return jsonify({"error": str(e)}), 500
|
return jsonify({"error": str(e)}), 500
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Reference in New Issue
Block a user