`@app.route('/v1/api/checkCurrentWeather')
def check_current_weather():
try:
location = get_location_by_ip(IP)
city = location['city']
country_code = location['countryCode']
temp_celsius = get_celsius_degrees_by_city(city)
except Exception as ex:
return {'message': 'FAILURE', 'ex': ex}, 500
return {"city": city, "country": country_code, "degrees": temp_celsius}, 200`