Line 41 is: params = utils.get_pagination_limit(params)

so this would already happen before it gets here.