Skip to content

Commit 1412491

Browse files
committed
Write __exit__ for ImageProvider
1 parent eb3419e commit 1412491

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

marker/providers/image.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ def get_page_lines(self, idx: int) -> List[Line]:
4646
return self.page_lines[idx]
4747

4848
def get_page_refs(self, idx: int) -> List[Reference]:
49-
return []
49+
return []
50+
51+
def __exit__(self, exc_type, exc_val, exc_tb):
52+
pass # images need to survive

0 commit comments

Comments
 (0)