Adding traceback printing to tech file import.

This commit is contained in:
Tim 'mithro' Ansell 2020-11-02 08:36:46 -08:00
parent 95d77119c7
commit 232f754c73
1 changed files with 3 additions and 1 deletions

View File

@ -514,7 +514,9 @@ def import_tech():
sys.path.append(tech_path) sys.path.append(tech_path)
try: try:
import tech import tech
except ImportError: except ImportError as e:
import traceback
traceback.print_exc()
debug.error("Could not load tech module.", -1) debug.error("Could not load tech module.", -1)
# Add custom modules of the technology to the path, if they exist # Add custom modules of the technology to the path, if they exist