diff --git a/nw/error.py b/nw/error.py index dd0cb109..cb276752 100644 --- a/nw/error.py +++ b/nw/error.py @@ -29,8 +29,11 @@ def formatHtmlErrMsg(exType, exValue, exTrace): """Generates a HTML version of an exception. """ try: + import sys from traceback import format_tb - from nw import __issuesurl__ + from nw import __issuesurl__, __version__ + from PyQt5.Qt import PYQT_VERSION_STR + from PyQt5.QtCore import QT_VERSION_STR, QSysInfo fmtTrace = "" for trEntry in format_tb(exTrace): @@ -41,11 +44,25 @@ def formatHtmlErrMsg(exType, exValue, exTrace): theMessage = ( "
Please report this error by submitting an issue report on " - "GitHub, providing a description and this error message.
" - "Issue Tracker
%s
Error Type
%s: %s
Traceback
%s
Environment
Version: {nwVersion}, OS: {osType} ({osKernel}),"
+ "Python: {pyVersion} ({pyHexVer:#x}), Qt: {qtVers}, PyQt: {pyqtVers}
Error Type
{exType}: {exMessage}
Traceback
{exTrace}