From 861149406917a033b40689071f54c178808ef3b0 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 29 Jun 2017 11:25:43 -0700 Subject: [PATCH] don't print a 'Distribution' line in Windows error reports --- gramps/gui/logger/_errorreportassistant.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/gui/logger/_errorreportassistant.py b/gramps/gui/logger/_errorreportassistant.py index 74c28c5a2..cefb541cd 100644 --- a/gramps/gui/logger/_errorreportassistant.py +++ b/gramps/gui/logger/_errorreportassistant.py @@ -169,10 +169,10 @@ class ErrorReportAssistant(ManagedWindow, Gtk.Assistant): """ if hasattr(os, "uname"): operatingsystem = os.uname()[0] - distribution = os.uname()[2] - else: + distribution = "Distribution: %s\n" % os.uname()[2] + else: # probably Windows operatingsystem = sys.platform - distribution = " " + distribution = "" # print nothing if there's nothing to print sqlite = '' if __debug__: @@ -185,7 +185,7 @@ class ErrorReportAssistant(ManagedWindow, Gtk.Assistant): "%s"\ "LANG: %s\n"\ "OS: %s\n"\ - "Distribution: %s\n\n"\ + "%s\n"\ "GTK version : %s\n"\ "gobject version: %s\n"\ "cairo version : %s"\