Skip to content

Commit 9ca337a

Browse files
committed
tidy
1 parent df6b485 commit 9ca337a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unstructured_client/_hooks/custom/split_pdf_hook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def _split_page_with_image_processing(self, page, num_splits):
542542

543543
try:
544544
pil_image = Image.open(io.BytesIO(image_data))
545-
except Exception as e:
545+
except Exception:
546546
continue
547547

548548
# Calculate target resolution to stay under API limits
@@ -604,7 +604,7 @@ def _extract_image_data(self, image_obj):
604604
data = image_obj._data
605605
return data
606606

607-
except Exception as e:
607+
except Exception:
608608
return None
609609

610610
def _create_page_with_image(self, pil_image, original_page):
@@ -628,7 +628,7 @@ def _create_page_with_image(self, pil_image, original_page):
628628
new_page = img_pdf.pages[0]
629629
return new_page
630630

631-
except Exception as e:
631+
except Exception:
632632
return None
633633

634634
def _add_media_box_split_pages(self, writer, page, num_splits, page_height):

0 commit comments

Comments
 (0)