Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled NotFound exception #40

Closed
rossjones opened this issue Oct 1, 2015 · 0 comments · Fixed by #41
Closed

Unhandled NotFound exception #40

rossjones opened this issue Oct 1, 2015 · 0 comments · Fixed by #41

Comments

@rossjones
Copy link
Contributor

From demo.ckan.org, NotFound is raised by not handled which results in a crash.

The fix is probably to catch and handle it at https://github.com/ckan/ckanext-dcat/blob/master/ckanext/dcat/controllers.py#L58

 File "/usr/lib/ckan/demo/src/ckanext-dcat/ckanext/dcat/controllers.py", line 35, in read_dataset
    'format': _format})
  File "/usr/lib/ckan/demo/src/ckan/ckan/logic/__init__.py", line 429, in wrapped
   result = _action(context, data_dict, **kw)
 File "/usr/lib/ckan/demo/src/ckanext-dcat/ckanext/dcat/logic.py", line 24, in dcat_dataset_show
  dataset_dict = toolkit.get_action('package_show')(context, data_dict)
 File "/usr/lib/ckan/demo/src/ckan/ckan/logic/__init__.py", line 429, in wrapped
   result = _action(context, data_dict, **kw)
 File "/usr/lib/ckan/demo/src/ckan/ckan/logic/action/get.py", line 923, in package_show
    raise NotFound
NotFound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant