Skip to content

Commit

Permalink
fix error-handling; avoids 500 on invalid page in a generic view
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Apr 26, 2010
1 parent 947647e commit 2a44e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagination/templatetags/pagination_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def paginate(context, window=DEFAULT_WINDOW, hashtag=''):
else:
to_return['getvars'] = ''
return to_return
except KeyError, AttributeError:
except (KeyError, AttributeError):
return {}

register.inclusion_tag('pagination/pagination.html', takes_context=True)(
Expand Down

0 comments on commit 2a44e0a

Please # to comment.