nhathuy07 commited on
Commit
7b281ec
·
verified ·
1 Parent(s): e452497

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
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