Improved error message
This commit is contained in:
parent
1631534f9b
commit
7f13219ec3
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ def _get_weather_json(lat, long):
|
|||
db.session.commit()
|
||||
return weather
|
||||
else:
|
||||
logger.error("Error in _get_weather_json: " + str(response.status_code))
|
||||
logger.error("Error in _get_weather_json: API call returned status code " + str(response.status_code) + ". " + str(response.json()["message"]))
|
||||
return None
|
||||
except requests.exceptions.RequestException as e:
|
||||
logger.error("Error in _get_weather_json: " + str(e))
|
||||
|
|
Loading…
Reference in a new issue