fixed variable name issue

This commit is contained in:
Jason Ji 2017-09-21 18:34:01 -07:00
parent 9e414eac17
commit b3434fa898

View File

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