Tryton - Issues

 

Issue8303

Title Error tryton client when try read records deleted for wizard
Priority bug Status closed
Superseder local variable 'exception' referenced before assignment
View: 8172
Nosy List ced, mono
Type crash Components tryton
Assigned To Keywords
Reviews

Created on 2019-04-24.02:49:22 by mono, last changed by ced.

Messages
msg49174 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-04-24.08:44:16
Duplicate issue8172 (please check last version before submitted an issue).
msg49172 (view) Author: [hidden] (mono) Date: 2019-04-24.02:52:15
Tryton 5.0.3
msg49171 (view) Author: [hidden] (mono) Date: 2019-04-24.02:49:21
Error when tryton client try to read deleted records by a wizard.
Note: the bug not is to read a deleted record but to reference before assignment of local variable

ERROR:tryton.common.common:  File "/usr/lib/python3.7/site-packages/tryton/__init__.py", line 49, in callback
    return func(*args)
  File "/usr/lib/python3.7/site-packages/tryton/gui/window/view_form/view/list_gtk/widget.py", line 57, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/tryton/gui/window/view_form/view/list_gtk/widget.py", line 352, in setter
    field = record[self.attrs['name']]
  File "/usr/lib/python3.7/site-packages/tryton/gui/window/view_form/model/record.py", line 131, in __getitem__
    record.exception = bool(exception)

local variable 'exception' referenced before assignment
History
Date User Action Args
2019-04-24 08:44:16cedsetstatus: chatting -> closed
superseder: + local variable 'exception' referenced before assignment
messages: + msg49174
nosy: + ced
2019-04-24 02:52:16monosetstatus: unread -> chatting
messages: + msg49172
2019-04-24 02:49:22monocreate

Showing 10 items. Show all history (warning: this could be VERY long)