Spaces:
Sleeping
Sleeping
Issue fixes
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def get_aqi(city:str, state:str, country:str)-> str:
|
|
58 |
|
59 |
except requests.exceptions.Timeout:
|
60 |
return "The request timed out. Please try again later or check the URL."
|
61 |
-
except RequestException as e:
|
62 |
return f"Error fetching the IQAir API: {str(e)}"
|
63 |
except Exception as e:
|
64 |
return f"An unexpected error occurred: {str(e)}"
|
|
|
58 |
|
59 |
except requests.exceptions.Timeout:
|
60 |
return "The request timed out. Please try again later or check the URL."
|
61 |
+
except requests.exceptions.RequestException as e:
|
62 |
return f"Error fetching the IQAir API: {str(e)}"
|
63 |
except Exception as e:
|
64 |
return f"An unexpected error occurred: {str(e)}"
|