Skip to content

Commit

Permalink
fix: ci_quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-56 committed Dec 2, 2024
1 parent 68a942b commit 6291fba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def paginate_queryset(self, queryset, request, view=None):
if search_after:
try:
queryset = queryset.extra(search_after=json.loads(search_after))
except json.JSONDecodeError:
raise ValueError("Invalid JSON format for search_after parameter")
except json.JSONDecodeError as exc:
raise ValueError("Invalid JSON format for search_after parameter") from exc

queryset = super().paginate_queryset(queryset, request, view)

Expand Down

0 comments on commit 6291fba

Please sign in to comment.