Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit 001d2f6

Browse files
committed
proper exception handling
1 parent b06b7a4 commit 001d2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap_pagination/templatetags/bootstrap_pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_page_url(page_num, current_app, url_view_name, url_extra_args, url_extra
2828
# This bit of code comes from the default django url tag
2929
try:
3030
url = reverse(url_view_name, args=url_extra_args, kwargs=url_extra_kwargs, current_app=current_app)
31-
except NoReverseMatch, e:
31+
except NoReverseMatch as e:
3232
if settings.SETTINGS_MODULE:
3333
project_name = settings.SETTINGS_MODULE.split('.')[0]
3434
url = reverse(project_name + '.' + url_view_name, args=url_extra_args, kwargs=url_extra_kwargs, current_app=current_app)

0 commit comments

Comments
 (0)