From c55849ee36aa1d6215add4e8b207cd46d2f71264 Mon Sep 17 00:00:00 2001 From: Argy Date: Wed, 23 Jun 2021 15:04:08 +0000 Subject: [PATCH] Updated return value for Failure case --- commands/water.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/water.py b/commands/water.py index ac47776..2eb1668 100644 --- a/commands/water.py +++ b/commands/water.py @@ -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):