Spaces:
Sleeping
Sleeping
Error handling
Browse files
app.py
CHANGED
|
@@ -39,7 +39,11 @@ def get_weather_for_date(date: str) -> str:
|
|
| 39 |
Args:
|
| 40 |
date: A string "Today"
|
| 41 |
"""
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
|
|
|
|
| 39 |
Args:
|
| 40 |
date: A string "Today"
|
| 41 |
"""
|
| 42 |
+
try:
|
| 43 |
+
return f"The weather for {date} is good"
|
| 44 |
+
except error:
|
| 45 |
+
return f"The weather for is good"
|
| 46 |
+
|
| 47 |
|
| 48 |
|
| 49 |
|