From 2d399044da39a5f65b2b761ec12ce4db70966382 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 31 Oct 2017 21:02:57 +0000 Subject: [PATCH] Print useful error message when exiting with no output --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 401753a..bfb655c 100644 --- a/main.py +++ b/main.py @@ -139,6 +139,7 @@ if __name__ == '__main__': try: curr_value = jsonVal(config[service].get('url'), config[service].get('structure')) except: + print('Error: Could not get current value for ' + service) exit(1) print('Writing Initial value for ' + service + ': ' + curr_value) config[service]['current_value'] = curr_value