Fix exception test for NotLogged

This commit is contained in:
Cédric Krier committed 2008-10-30 13:55:14 +01:00
1 parent 99ac25daeb
commit ee63ab7d6e
1 file changed
+1 -1
+1 -1
View File
@@ -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]