fix: security warnings related to information exposure and regex validations (#3325)

This commit is contained in:
Nikhil 2024-01-08 23:26:32 +05:30 committed by sriram veeraghanta
parent 68d370fd86
commit 43b503c756
5 changed files with 13 additions and 17 deletions

View file

@ -188,7 +188,7 @@ class BasePaginator:
try:
cursor_result = paginator.get_result(limit=per_page, cursor=input_cursor)
except BadPaginationError as e:
raise ParseError(detail=str(e))
raise ParseError(detail="Error in parsing")
# Serialize result according to the on_result function
if on_results: