|
@@ -400,7 +400,7 @@ raised when trying to import Datasource"
|
400
|
400
|
err_l[u_f] = AttributeError("Unknown or unauthorized field '%s'" % u_f)
|
401
|
401
|
# searching for missing mandatory fieldsa
|
402
|
402
|
for missing in mandatory - provided:
|
403
|
|
- err_l[miss_field] = AttributeError("The data for field '%s' is missing" % missing)
|
|
403
|
+ err_l[missing] = AttributeError("The data for field '%s' is missing" % missing)
|
404
|
404
|
#Checks datas
|
405
|
405
|
checked_datas = dict()
|
406
|
406
|
for name, value in [ (name, value) for name, value in datas.items() if name in correct ]:
|
|
@@ -411,7 +411,7 @@ raised when trying to import Datasource"
|
411
|
411
|
err_l[name] = err
|
412
|
412
|
|
413
|
413
|
if len(err_l) > 0:
|
414
|
|
- raise LeApiDataCheckError("Error while checking datas", err_l)
|
|
414
|
+ raise LeApiDataCheckErrors("Error while checking datas", err_l)
|
415
|
415
|
return checked_datas
|
416
|
416
|
|
417
|
417
|
##@brief Check and prepare datas
|