fix: do not return raw search exception due to API keys in URLs

This commit is contained in:
Jun Siang Cheah
2024-05-06 16:54:15 +08:00
parent 99e4edd364
commit 83f086ccdd
2 changed files with 12 additions and 1 deletions

View File

@@ -75,3 +75,7 @@ class ERROR_MESSAGES(str, Enum):
INVALID_URL = (
"Oops! The URL you provided is invalid. Please double-check and try again."
)
WEB_SEARCH_ERROR = (
"Oops! Something went wrong while searching the web. Please try again later."
)