fixed variable name issue

This commit is contained in:
Jason Ji 2017-09-21 18:34:01 -07:00
parent 3ecad82a28
commit df156c351b

View File

@ -26,7 +26,7 @@ def get_weather(message):
""" """
loc = parse_loc(message) loc = parse_loc(message)
try: try:
forecaster = openweathermap.three_hours_forecast(location) forecaster = openweathermap.three_hours_forecast(loc)
forecast = forecaster.get_forecast() forecast = forecaster.get_forecast()
reg = forecast.get(0) reg = forecast.get(0)