We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5410997 commit e49572cCopy full SHA for e49572c
unstructured_platform_plugins/etl_uvicorn/errors.py
@@ -40,7 +40,9 @@ def wrap_error(e: Exception) -> HTTPException:
40
"""
41
Wraps an exception in a HTTPException.
42
43
- if isinstance(e, ingest_errors.UserAuthError):
+ if isinstance(e, HTTPException):
44
+ return e
45
+ elif isinstance(e, ingest_errors.UserAuthError):
46
return UserAuthError(e)
47
elif isinstance(e, ingest_errors.RateLimitError):
48
return RateLimitError(e)
0 commit comments