Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

fix type error

Abi Rajafb5480b036d8
diff --git a/backend/image_generation/core.py b/backend/image_generation/core.py
index dfd3375f..91a5535b 100644
--- a/backend/image_generation/core.py
+++ b/backend/image_generation/core.py
@@ -27,7 +27,7 @@ async def process_tasks(
processed_results: List[Union[str, None]] = []
for result in results:
- if isinstance(result, Exception):
+ if isinstance(result, BaseException):
print(f"An exception occurred: {result}")
processed_results.append(None)
else: