Skip to content

Commit ffbc160

Browse files
committed
refactor: use _close_current_writer on exit
1 parent 9da253c commit ffbc160

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyiceberg/manifest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,8 @@ def __exit__(
805805
exc_value: Optional[BaseException],
806806
traceback: Optional[TracebackType],
807807
) -> None:
808+
self._close_current_writer()
808809
self.closed = True
809-
if self._current_writer:
810-
self._current_writer.__exit__(exc_type, exc_value, traceback)
811810

812811
def _get_current_writer(self) -> ManifestWriter:
813812
if self._should_roll_to_new_file():

0 commit comments

Comments
 (0)