Skip to content

Commit 86834b9

Browse files
authored
Merge pull request #1950 from dhalbert/macropad-hotkeys-report-errors
print out traceback for errors in Macropad Hotkeys macro files
2 parents cc18ff8 + 92995f6 commit 86834b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Macropad_Hotkeys/code.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def switch(self):
8383
apps.append(App(module.app))
8484
except (SyntaxError, ImportError, AttributeError, KeyError, NameError,
8585
IndexError, TypeError) as err:
86-
pass
86+
print("ERROR in", filename)
87+
import traceback
88+
traceback.print_exception(err, err, err.__traceback__)
8789

8890
if not apps:
8991
group[13].text = 'NO MACRO FILES FOUND'

0 commit comments

Comments
 (0)