fixed variable name issue
This commit is contained in:
parent
3ecad82a28
commit
df156c351b
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user