Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit fb67383

Browse files
committed
Fix bugbear exception chaining
1 parent cc00587 commit fb67383

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Nox failed to import the 'nox-poetry' package.
1515
Please install it using the following command:
1616
{sys.executable} -m pip install nox-poetry"""
17-
raise SystemExit(dedent(message))
17+
raise SystemExit(dedent(message)) from None
1818

1919

2020
package = "django_sorting_bootstrap"

src/django_sorting_bootstrap/templatetags/sorting_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def auto_sort(parser, token):
174174
except ValueError:
175175
raise template.TemplateSyntaxError(
176176
"{} tag requires a single argument".format(token.contents.split()[0])
177-
)
177+
) from None
178178
return SortedQuerysetNode(queryset)
179179

180180

0 commit comments

Comments
 (0)