Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed1daa32 authored by Cqoicebordel's avatar Cqoicebordel
Browse files

Don't throw away the request if pageno is wrong

Fix #424 but maybe only partially
parent 8adc8012
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ class Search(object):
        # set pagenumber
        pageno_param = self.request_data.get('pageno', '1')
        if not pageno_param.isdigit() or int(pageno_param) < 1:
            raise Exception('wrong pagenumber')
            pageno_param = 1

        self.pageno = int(pageno_param)