Catch exceptions in version.version() in CrashDialog.
This commit is contained in:
parent
8f2ad91086
commit
2e419d413b
@ -126,7 +126,10 @@ class _CrashDialog(QDialog):
|
|||||||
except Exception as e: # pylint: disable=broad-except
|
except Exception as e: # pylint: disable=broad-except
|
||||||
self._crash_info.append(("Contact info", "User: {}: {}".format(
|
self._crash_info.append(("Contact info", "User: {}: {}".format(
|
||||||
e.__class__.__name__, e)))
|
e.__class__.__name__, e)))
|
||||||
self._crash_info.append(("Version info", version.version()))
|
try:
|
||||||
|
self._crash_info.append(("Version info", version.version()))
|
||||||
|
except Exception as e: # pylint: disable=broad-except
|
||||||
|
self._crash_info.append(("Version info", traceback.format_exc()))
|
||||||
try:
|
try:
|
||||||
self._crash_info.append(("Config",
|
self._crash_info.append(("Config",
|
||||||
config.instance().dump_userconfig()))
|
config.instance().dump_userconfig()))
|
||||||
|
Loading…
Reference in New Issue
Block a user