Yaz Hobooti commited on
Commit
e245183
·
1 Parent(s): e482b0b

Fix third syntax error: correct indentation of except block in pdf2image loop

Browse files

- Fixed SyntaxError: expected 'except' or 'finally' block at line 389
- Corrected indentation of except block to properly align with try block in poppler_paths loop
- Resolves malformed try-except structure in load_pdf_pages function
- Ensures proper exception handling in PDF conversion loop

Files changed (1) hide show
  1. pdf_comparator.py +1 -1
pdf_comparator.py CHANGED
@@ -386,7 +386,7 @@ def load_pdf_pages(path: str, dpi: int = 400, max_pages: int = 5) -> List[Image.
386
  continue
387
 
388
  return [img.convert("RGB") for img in imgs]
389
- except Exception as e:
390
  if poppler_path is None: # All pdf2image attempts failed
391
  break
392
  continue # Try next path
 
386
  continue
387
 
388
  return [img.convert("RGB") for img in imgs]
389
+ except Exception as e:
390
  if poppler_path is None: # All pdf2image attempts failed
391
  break
392
  continue # Try next path