33
33
DISPLAY_RESIZE_WIDTH = 240
34
34
DISPLAY_RESIZE_HEIGHT = 180
35
35
DISPLAY_RESIZE = (DISPLAY_RESIZE_WIDTH , DISPLAY_RESIZE_HEIGHT )
36
-
36
+ CREATE_NEW_ISSUE_MESSAGE = \
37
+ "Please create a New Issue at <a href='https://github.com/Toufool/Auto-Split/issues'>"
38
+ "github.com/Toufool/Auto-Split/issues</a>, describe what happened, and copy & paste the error message below"
37
39
38
40
class AutoSplit (QtWidgets .QMainWindow , design .Ui_MainWindow ):
39
41
from hotkeys import send_command
@@ -1216,9 +1218,7 @@ def main():
1216
1218
# Print error to console if not running in executable
1217
1219
if getattr (sys , 'frozen' , False ):
1218
1220
error_messages .exceptionTraceback (
1219
- "AutoSplit encountered an unrecoverable exception and will now close itself.<br/>"
1220
- "Please copy the following message over at<br/>"
1221
- "<a href='https://github.com/Toufool/Auto-Split/issues'>github.com/Toufool/Auto-Split/issues</a>" ,
1221
+ f"AutoSplit encountered an unrecoverable exception and will now close. { CREATE_NEW_ISSUE_MESSAGE } " ,
1222
1222
exception )
1223
1223
else :
1224
1224
traceback .print_exception (type (exception ), exception , exception .__traceback__ )
@@ -1236,9 +1236,7 @@ def excepthook(exceptionType: Type[BaseException], exception: BaseException, tra
1236
1236
sys .exit (0 )
1237
1237
error_messages .exceptionTraceback (
1238
1238
"AutoSplit encountered an unhandled exception and will try to recover, "
1239
- "however, things may not work quite right.<br/>"
1240
- "Please copy the following message over at<br/>"
1241
- "<a href='https://github.com/Toufool/Auto-Split/issues'>github.com/Toufool/Auto-Split/issues</a>" ,
1239
+ f"however, there is no guarantee everything will work properly. { CREATE_NEW_ISSUE_MESSAGE } " ,
1242
1240
exception )
1243
1241
1244
1242
0 commit comments