0xffan commited on
Commit
64f6f8a
·
1 Parent(s): 64008d9

Issue fixes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)}"