Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -452,8 +452,10 @@ async def convert2html(request):
|
|
452 |
for file in files:
|
453 |
try:
|
454 |
output = pypandoc.convert_file(file, "html")
|
|
|
455 |
|
456 |
-
except:
|
|
|
457 |
return JSONResponse({"detail": ""}, status_code=422)
|
458 |
|
459 |
# Extract image sources from document
|
|
|
452 |
for file in files:
|
453 |
try:
|
454 |
output = pypandoc.convert_file(file, "html")
|
455 |
+
print(output)
|
456 |
|
457 |
+
except Exception as e:
|
458 |
+
print(e)
|
459 |
return JSONResponse({"detail": ""}, status_code=422)
|
460 |
|
461 |
# Extract image sources from document
|