Skip to content

Commit

Permalink
Fixing Flake error
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyBower committed Apr 3, 2019
1 parent 2ce01c2 commit b472fa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel_modules/weather/weather.py
Expand Up @@ -245,7 +245,7 @@ def say_info(bot, trigger, mode):
@example('.weather w7174408')
def weather_command(bot, trigger):
""".weather location - Show the weather at the given location."""
if bot.config.weather.api_key is None or bot.config.weather.api_key is '':
if bot.config.weather.api_key is None or bot.config.weather.api_key == '':
return bot.reply("OpenWeatherMap API key missing. Please configure this module.")
return say_info(bot, trigger, 'weather')

Expand All @@ -258,7 +258,7 @@ def weather_command(bot, trigger):
@example('.forecast w7174408')
def forecast_command(bot, trigger):
""".forecast location - Show the weather forecast for tomorrow at the given location."""
if bot.config.weather.api_key is None or bot.config.weather.api_key is '':
if bot.config.weather.api_key is None or bot.config.weather.api_key == '':
return bot.reply("OpenWeatherMap API key missing. Please configure this module.")
return say_info(bot, trigger, 'forecast')

Expand All @@ -269,7 +269,7 @@ def forecast_command(bot, trigger):
@example('.setlocation 90210')
@example('.setlocation w7174408')
def update_location(bot, trigger):
if bot.config.weather.api_key is None or bot.config.weather.api_key is '':
if bot.config.weather.api_key is None or bot.config.weather.api_key == '':
return bot.reply("OpenWeatherMap API key missing. Please configure this module.")

"""Set your default weather location."""
Expand Down

0 comments on commit b472fa2

Please sign in to comment.