From 8d06a2aa29c91431059476c6bd1e23651ee8230c Mon Sep 17 00:00:00 2001 From: Andrew de Quincey Date: Sat, 1 May 2021 14:25:13 +0100 Subject: [PATCH] minor code cleanup --- kiln-tuner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kiln-tuner.py b/kiln-tuner.py index 666f663..1253c2b 100755 --- a/kiln-tuner.py +++ b/kiln-tuner.py @@ -14,14 +14,13 @@ def recordprofile(csvfile, targettemp): import config sys.dont_write_bytecode = False - except: + except ImportError: print("Could not import config file.") print("Copy config.py.EXAMPLE to config.py and adapt it for your setup.") exit(1) script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, script_dir + '/lib/') - profile_path = os.path.join(script_dir, "storage", "profiles") from oven import RealOven, SimulatedOven