New enterprise feature
This commit is contained in:
@@ -122,8 +122,8 @@ class DatabaseManager:
|
||||
# Don't wrap HTTPExceptions - let them pass through
|
||||
# Check by type name to avoid import dependencies
|
||||
exception_type = type(e).__name__
|
||||
if exception_type in ('HTTPException', 'StarletteHTTPException'):
|
||||
logger.debug(f"Re-raising HTTPException: {e}", service=self.service_name)
|
||||
if exception_type in ('HTTPException', 'StarletteHTTPException', 'RequestValidationError', 'ValidationError'):
|
||||
logger.debug(f"Re-raising {exception_type}: {e}", service=self.service_name)
|
||||
raise
|
||||
|
||||
error_msg = str(e) if str(e) else f"{type(e).__name__}: {repr(e)}"
|
||||
|
||||
Reference in New Issue
Block a user