Spaces:
Sleeping
Sleeping
Correct indent error in app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def find_open_restaurants(location: str, cuisine: str)-> str: # it's important t
|
|
| 18 |
location: A string representing the location area to search for open restaurants.
|
| 19 |
cuisine: A string representing the cuisine type (e.g. Asian, breakfast, Indian, lunch, etc.)
|
| 20 |
"""
|
| 21 |
-
|
| 22 |
# Get the current local time
|
| 23 |
tz = pytz.timezone(timezone)
|
| 24 |
local_time = datetime.datetime.now(tz).strftime("%H:%M")
|
|
|
|
| 18 |
location: A string representing the location area to search for open restaurants.
|
| 19 |
cuisine: A string representing the cuisine type (e.g. Asian, breakfast, Indian, lunch, etc.)
|
| 20 |
"""
|
| 21 |
+
try:
|
| 22 |
# Get the current local time
|
| 23 |
tz = pytz.timezone(timezone)
|
| 24 |
local_time = datetime.datetime.now(tz).strftime("%H:%M")
|