Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
also need to handle EmptyPage
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Dec 31, 2017
1 parent d373751 commit 63ef8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mithras/abraxas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def get_context_data(self, **kwargs):
paginator = Paginator(user.newest_posts(), 10)
try:
p = paginator.page(self.request.GET.get('page', '1'))
except PageNotAnInteger:
except (PageNotAnInteger, EmptyPage):
p = paginator.page('1')
return dict(user=user, posts=p.object_list, paginator=p)

Expand Down

0 comments on commit 63ef8ae

Please sign in to comment.