From 91d4d7303a56a714c210b820d88d8258d6bff9ab Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 1 Jul 2019 17:05:08 +1000 Subject: [PATCH] removed legacy code --- main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.py b/main.py index 6df5cd6..95ec532 100755 --- a/main.py +++ b/main.py @@ -23,11 +23,7 @@ cfg = { "max_thread_length": 15 } -try: - cfg.update(json.load(open('config.json', 'r'))) -except: - shutil.copy2("config.sample.json", "config.json") - cfg.update(json.load(open('config.json', 'r'))) +cfg.update(json.load(open('config.json', 'r'))) if "client" not in cfg: print("No application info -- registering application with {}".format(cfg['site']))