Skip to content

Commit fee8568

Browse files
committed
refactor: use _close_current_writer on exit
1 parent 4268464 commit fee8568

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
@@ -875,9 +875,8 @@ def __exit__(
875875
exc_value: Optional[BaseException],
876876
traceback: Optional[TracebackType],
877877
) -> None:
878+
self._close_current_writer()
878879
self.closed = True
879-
if self._current_writer:
880-
self._current_writer.__exit__(exc_type, exc_value, traceback)
881880

882881
def _get_current_writer(self) -> ManifestWriter:
883882
if self._should_roll_to_new_file():

0 commit comments

Comments
 (0)