From 32f6a3b271a496ed88d6b98570ee825d271067c2 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 16 Oct 2019 21:21:49 +0900 Subject: [PATCH] Update change_level.py Co-Authored-By: Alexandre Aubin --- change_level.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/change_level.py b/change_level.py index 15c46990..51a850bc 100755 --- a/change_level.py +++ b/change_level.py @@ -32,7 +32,7 @@ if __name__ == '__main__': if app_list[app_id]["state"] == "working": app_list[app_id]["level"] = int(level) - else: + elif "level" in app_list[app_id]: print "Warning: app '%s' is currently not marked as working, the level is removed" % app_id del app_list[app_id]["level"]