From 4234d0133f08bb166a4f0c6a2ed804af12cba14c Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 28 Jun 2006 02:52:38 +0000 Subject: [PATCH] src/GampsLogger/_ErrorReportAssistant.py: fix error message in Windows svn: r6970 --- gramps2/ChangeLog | 3 +++ gramps2/src/GrampsLogger/_ErrorReportAssistant.py | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3a2c3e8e1..1b6e8b9bb 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-06-27 Brian Matherly + * src/GampsLogger/_ErrorReportAssistant.py: fix error message in Windows + 2006-06-26 Don Allingham * src/ReportBase/_ReportDialog.py (report): catch IOError * src/Filters/Rules/Person/_HasDeath.py: use references instead of diff --git a/gramps2/src/GrampsLogger/_ErrorReportAssistant.py b/gramps2/src/GrampsLogger/_ErrorReportAssistant.py index 30b99cd77..3f8095dab 100644 --- a/gramps2/src/GrampsLogger/_ErrorReportAssistant.py +++ b/gramps2/src/GrampsLogger/_ErrorReportAssistant.py @@ -81,6 +81,13 @@ class ErrorReportAssistant: self._final_report_text_buffer.get_end_iter())) def _get_sys_information(self): + if hasattr(os, "uname"): + operatingsystem = os.uname()[0] + distribution = os.uname()[2] + else: + operatingsystem = sys.platform + distribution = " " + return "Python version: %s \n"\ "Gramps version: %s \n"\ "LANG: %s\n"\ @@ -89,8 +96,8 @@ class ErrorReportAssistant: % (str(sys.version).replace('\n',''), str(const.version), os.environ.get('LANG',''), - os.uname()[0], - os.uname()[2]) + operatingsystem, + distribution) def _reset_error_details_text_buffer(self,obj=None): self._error_details_text_buffer.set_text(