Anand0204 commited on
Commit
8190ee9
·
verified ·
1 Parent(s): 7f706e8

Error handling

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -39,7 +39,11 @@ def get_weather_for_date(date: str) -> str:
39
  Args:
40
  date: A string "Today"
41
  """
42
- return f"The weather for {date} is good"
 
 
 
 
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