Skip to content

Commit 94bc571

Browse files
committed
[ckan#9202] type checking
1 parent 51772ff commit 94bc571

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ckan/views/resource.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,8 @@ def post(self, package_type: str, id: str) -> Union[str, Response]:
234234
_(u'The dataset {id} could not be found.').format(id=id)
235235
)
236236
except ValidationError as e:
237-
errors = cast("list[ErrorDict]", e.error_dict)
238237
error_summary = e.error_summary
239-
return self.get(package_type, id, {}, errors, error_summary)
238+
return self.get(package_type, id, {}, e.error_dict, error_summary)
240239
return h.redirect_to(u'{}.read'.format(package_type), id=id)
241240

242241
data[u'package_id'] = id

0 commit comments

Comments
 (0)