Skip to content

Commit

Permalink
refactor: update exception message
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Bonczek <44197504+larsbonczek@users.noreply.github.com>
  • Loading branch information
janbritz and larsbonczek authored Dec 3, 2024
1 parent bc4fafd commit f8585de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questionpy/_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def create_jinja2_environment(attempt: "Attempt", question: "Question") -> jinja
key = PackageNamespaceAndShortName(namespace=namespace, short_name=short_name)
package = qpy_env.packages[key]
except (KeyError, ValueError) as e:
msg = "Please do not modify the '__module__' attribute."
msg = "Current package namespace and shortname could not be determined from '__module__' attribute. Please do not modify the '__module__' attribute."

Check failure on line 85 in questionpy/_ui.py

View workflow job for this annotation

GitHub Actions / ci / ruff-lint

Ruff (E501)

questionpy/_ui.py:85:121: E501 Line too long (157 > 120)
raise ValueError(msg) from e

if current_package_loader := _get_loader(package):
Expand Down

0 comments on commit f8585de

Please sign in to comment.