forked from khuxkm/cosmicbot
Updated return value for Failure case
This commit is contained in:
parent
03bcabfa94
commit
c55849ee36
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue