Skip to content

Commit

Permalink
weather: fixing bug with get_geocoords
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyBower committed Feb 22, 2020
1 parent 208ab09 commit 92a9c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel_modules/weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get_forecast(bot, trigger):
"London, for example.".format(command=trigger.group(1),
pfx=bot.config.core.help_prefix)
else:
latitude, longitude, location = get_geocoords(trigger.group(2))
latitude, longitude, location = get_geocoords(bot, trigger)

# Query DarkSky
url = 'https://api.darksky.net/forecast/{}/{},{}'.format(
Expand Down Expand Up @@ -201,7 +201,7 @@ def get_weather(bot, trigger):
"London, for example.".format(command=trigger.group(1),
pfx=bot.config.core.help_prefix)
else:
latitude, longitude, location = get_geocoords(trigger.group(2))
latitude, longitude, location = get_geocoords(bot, trigger)

# Query DarkSky
url = 'https://api.darksky.net/forecast/{}/{},{}'.format(
Expand Down

0 comments on commit 92a9c57

Please sign in to comment.