Skip to content

Commit

Permalink
+verbosity at component loading AttributeError
Browse files Browse the repository at this point in the history
targets #380
  • Loading branch information
nerdoc authored Oct 26, 2022
1 parent 6cb0e13 commit 4fd8daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_unicorn/components/unicorn_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def _get_component_class(

if class_name_not_found is not None and attribute_exception is not None:
message = (
f"The component class '{class_name_not_found}' could not be loaded."
f"The component class '{class_name_not_found}' could not be loaded:\n {attribute_exception}"
)
raise ComponentClassLoadError(
message, locations=locations
Expand Down

0 comments on commit 4fd8daf

Please sign in to comment.