diff --git a/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py b/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py index d7435b6b..f56a0394 100644 --- a/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py +++ b/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py @@ -160,7 +160,7 @@ async def generate_html_from_slide(base64_image: str, media_type: str, xml_conte return html_content - except errors.GoogleAPIError as e: + except errors.APIError as e: print(f"Google API Error: {e}") raise HTTPException( status_code=500, @@ -255,7 +255,7 @@ async def generate_react_component_from_html(html_content: str, api_key: str) -> print(f"Filtered React content length: {len(filtered_react_content)}") return filtered_react_content - except errors.GoogleAPIError as e: + except errors.APIError as e: print(f"Google API Error: {e}") raise HTTPException( status_code=500,