Updated return value for Failure case

This commit is contained in:
Argy 2021-06-23 15:04:08 +00:00
parent 03bcabfa94
commit c55849ee36
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ def water(user):
with open(os.path.expanduser("~{}/.botany/{}_plant_data.json".format(user,user))) as f:
return json.load(f)['description'] # Success
except:
return "" # Failure
return False # Failure
@plugin.command("water")
def cmd_water(bot,channel,nick,user=None):