mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 09:41:52 +01:00
add more egnyte failure logging
This commit is contained in:
parent
a52c821e78
commit
7c29b1e028
@ -65,7 +65,18 @@ def _request_with_retries(
|
||||
timeout=timeout,
|
||||
stream=stream,
|
||||
)
|
||||
response.raise_for_status()
|
||||
try:
|
||||
response.raise_for_status()
|
||||
except requests.exceptions.HTTPError as e:
|
||||
if e.response.status_code != 403:
|
||||
logger.exception(
|
||||
f"Failed to call Egnyte API.\n"
|
||||
f"URL: {url}\n"
|
||||
f"Headers: {headers}\n"
|
||||
f"Data: {data}\n"
|
||||
f"Params: {params}"
|
||||
)
|
||||
raise e
|
||||
return response
|
||||
|
||||
return _make_request()
|
||||
|
Loading…
x
Reference in New Issue
Block a user