-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug related to set language after installing, and made some i…
…mprovements.
- Loading branch information
1 parent
b4ef073
commit 70c0a77
Showing
7 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import traceback | ||
import os | ||
import ctypes | ||
import sys | ||
def my_excepthook(exctype, value, tb): | ||
tb_list = traceback.extract_tb(tb) | ||
error_message = "" | ||
|
||
for tb in tb_list: | ||
file_name = os.path.basename(tb.filename) | ||
line_number = tb.lineno | ||
code = tb.line | ||
|
||
error_message += f"\nFile: {file_name}\nLine: {line_number}\nCode: {code}\n" | ||
|
||
error_message += f"\n{exctype.__name__}: {value}" | ||
|
||
ctypes.windll.user32.MessageBoxW(None, error_message, "Error", 0x10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters