Fix exception test for NotLogged
This commit is contained in:
1 parent
99ac25daeb
commit
ee63ab7d6e
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user