Yaz Hobooti
commited on
Commit
·
b489434
1
Parent(s):
2a25732
Fix syntax error: correct indentation of except block in load_pdf_pages
Browse files- Fixed malformed try-except block at line 389
- Corrected indentation of except block to align with try block
- Resolves SyntaxError: expected 'except' or 'finally' block
- Ensures proper exception handling in PDF loading function
- 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 |
-
|
| 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
|