From e1685a18f1548477a0e026b949acc645001e851d Mon Sep 17 00:00:00 2001 From: Brennan Novak Date: Mon, 9 Nov 2015 18:54:29 +0100 Subject: [PATCH] trimed exception popup message text quite a bit. Fixes QubesOS/qubes-issues#1394 --- qubesmanager/main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 98441f1..5d1d262 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1985,13 +1985,9 @@ def handle_exception(exc_type, exc_value, exc_traceback): filename, line, dummy, dummy = traceback.extract_tb(exc_traceback).pop() filename = os.path.basename(filename) - error = "%s: %s" % (exc_type.__name__, exc_value) message = ( - "Whoops. A critical error has occured. This is most likely a bug " - "in Qubes Manager.

" - "%s" % error + - "
at line %d
of file %s.

" - % (line, filename) + "%s" % exc_value + + "

This is most likely a bug in the Qubes Manager" ) is_gui_thread = threading.currentThread().getName() == "QtMainThread" strace = ""