Catch exceptions in version.version() in CrashDialog.

This commit is contained in:
Florian Bruhin 2014-09-16 07:34:27 +02:00
parent 8f2ad91086
commit 2e419d413b

View File

@ -126,7 +126,10 @@ class _CrashDialog(QDialog):
except Exception as e: # pylint: disable=broad-except
self._crash_info.append(("Contact info", "User: {}: {}".format(
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:
self._crash_info.append(("Config",
config.instance().dump_userconfig()))