mirror of
https://github.com/yweber/lodel2.git
synced 2026-04-11 04:29:57 +02:00
Correction raise LeApiErrors
This commit is contained in:
parent
6fa7f8848f
commit
521f81728d
1 changed files with 3 additions and 1 deletions
|
|
@ -86,11 +86,13 @@ class LeObject(object):
|
|||
)
|
||||
else:
|
||||
err_list.append(
|
||||
AttributeError("Unknown fieldname : '%s'" % fieldname)
|
||||
LeApiError("Unknown fieldname : '%s'" % fieldname)
|
||||
)
|
||||
else:
|
||||
self.__datas[fieldname] = fieldval
|
||||
self.__initialized = list()
|
||||
if len(err_list) > 0:
|
||||
raise LeApiErrors(err_list)
|
||||
self.__set_initialized()
|
||||
|
||||
#-----------------------------------#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue