Skip to content

Commit

Permalink
temp: better exception details
Browse files Browse the repository at this point in the history
  • Loading branch information
ormsbee committed Oct 15, 2024
1 parent 6608ab9 commit f150d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openedx/core/djangoapps/content_libraries/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,8 @@ def component_version_asset(request, component_version_uuid, asset_path):
component_version = authoring.get_component_version_by_uuid(
component_version_uuid
)
except ObjectDoesNotExist:
raise Http404()
except ObjectDoesNotExist as exc:
raise Http404() from exc

# Permissions check...
learning_package = component_version.component.learning_package
Expand Down

0 comments on commit f150d9f

Please sign in to comment.