From e8202bf4fe0c8476999f80a60b47b6baba879975 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Thu, 12 Sep 2013 14:24:56 +0000 Subject: [PATCH] 6940: ErrorReportAssistant_Test.test_buffer_recall fix as approved by Benny svn: r23090 --- gramps/gui/logger/_errorreportassistant.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gramps/gui/logger/_errorreportassistant.py b/gramps/gui/logger/_errorreportassistant.py index a9868da54..93bc615d0 100644 --- a/gramps/gui/logger/_errorreportassistant.py +++ b/gramps/gui/logger/_errorreportassistant.py @@ -63,7 +63,12 @@ class ErrorReportAssistant(Gtk.Assistant): def __init__(self, error_detail, rotate_handler, ownthread=False): GObject.GObject.__init__(self) - self._error_detail = error_detail + try: + # did we get a handler wrapping the error detail? + self._error_detail = error_detail.get_formatted_log() + except AttributeError: + self._error_detail = error_detail + self._rotate_handler = rotate_handler self._sys_information_text_buffer = None @@ -175,8 +180,7 @@ class ErrorReportAssistant(Gtk.Assistant): """ self._error_details_text_buffer.set_text( "\n".join(self._rotate_handler.get_formatted_log( - self._error_detail.get_record())) - + self._error_detail.get_formatted_log()) + self._error_detail))) def _clear_error_details(self, obj=None): """