Skip to content

Commit 3fd5966

Browse files
committed
* salve log file when import error
1 parent 890b924 commit 3fd5966

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jexboss.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
print(RED1 + BOLD + "\n * Package urllib3 not installed. Please install the dependencies before continue.\n"
7070
"" + GREEN + " Example: \n"
7171
" # pip install -r requires.txt\n" + ENDC)
72+
with open('debug.log', 'a') as debug_file:
73+
traceback.print_exc(file=debug_file)
7274
exit(0)
7375

7476
try:

0 commit comments

Comments
 (0)