From 232f754c73ae6acd0f8b35d38a8e1ec6ef7972ea Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Mon, 2 Nov 2020 08:36:46 -0800 Subject: [PATCH] Adding traceback printing to tech file import. --- compiler/globals.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/globals.py b/compiler/globals.py index 1f3244fe..98196254 100644 --- a/compiler/globals.py +++ b/compiler/globals.py @@ -514,7 +514,9 @@ def import_tech(): sys.path.append(tech_path) try: import tech - except ImportError: + except ImportError as e: + import traceback + traceback.print_exc() debug.error("Could not load tech module.", -1) # Add custom modules of the technology to the path, if they exist