From 3b91b069f3d46ef5ee9b21e705106b009a787ca2 Mon Sep 17 00:00:00 2001 From: fly Date: Sat, 18 Jan 2020 06:01:39 +0000 Subject: [PATCH] Another fix Signed-off-by: fly --- worldbuild-manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldbuild-manager.py b/worldbuild-manager.py index 357ca25..e726244 100755 --- a/worldbuild-manager.py +++ b/worldbuild-manager.py @@ -123,6 +123,8 @@ def set_state(state, name, status): state[name_major]["status"] = "skip" else: state[name_major]["status"] = "pending" + else: + print("WARNING: Invalid status '" + status + "' recived from " + name) if os.path.isfile(sfile): try: @@ -168,8 +170,6 @@ try: state = set_state(state, name, status) save_state(state) - else: - print("WARNING: Invalid status '" + status + "' recived from " + name) elif action == "get": tile = ""