From ee63ab7d6e29f1bd4cd9eb85049d3e3dab578293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 30 Oct 2008 13:55:14 +0100 Subject: [PATCH] Fix exception test for NotLogged --- tryton/gui/window/view_form/model/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index ed38e29cc7..6028aff944 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -77,7 +77,7 @@ class ModelRecord(SignalEvent): values = self.rpc.read(ids, self.mgroup.mfields.keys() + \ ['_timestamp'], ctx) except Exception, exception: - if str(exception) != 'NotLogged': + if str(exception[0]) != 'NotLogged': log = logging.getLogger('record') log.error('%s' % exception.args[-1]) values = [{'id': x} for x in ids]