Skip to content

Commit

Permalink
Handle empty value for page
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jun 4, 2014
1 parent 8e8132f commit 86517c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/web/frontend/groups.py
Expand Up @@ -96,7 +96,7 @@ def _get_group_list(request, project):
# is abstracted from the paginator tag
try:
page = int(request.GET.get('p', 1))
except TypeError:
except (ValueError, TypeError):
page = 1

query_kwargs['offset'] = (page - 1) * EVENTS_PER_PAGE
Expand Down

0 comments on commit 86517c5

Please sign in to comment.