Skip to content

Commit

Permalink
Update ckanext/recombinant/logic.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Ward <ian@excess.org>
  • Loading branch information
JVickery-TBS and wardi authored Dec 10, 2024
1 parent ea269a0 commit 74096d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/recombinant/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ def recombinant_datastore_upsert(up_func, context, data_dict):
try:
up_func(context, data_dict)
except ValidationError as e:
_error_dict = e.error_dict
_error_dict = dict(e.error_dict)
_error_dict['records'] = dict(_error_dict['records'])
if 'records' not in _error_dict:
raise
for record_errs in _error_dict['records']:
Expand Down

0 comments on commit 74096d2

Please sign in to comment.