print out traceback for errors in Macropad Hotkeys macro files

This commit is contained in:
Dan Halbert 2021-12-14 09:25:06 -05:00
parent cc18ff8e50
commit 92995f60eb

View file

@ -83,7 +83,9 @@ for filename in files:
apps.append(App(module.app))
except (SyntaxError, ImportError, AttributeError, KeyError, NameError,
IndexError, TypeError) as err:
pass
print("ERROR in", filename)
import traceback
traceback.print_exception(err, err, err.__traceback__)
if not apps:
group[13].text = 'NO MACRO FILES FOUND'