Skip to content

Commit

Permalink
mlog: Catch OSError when closing pager
Browse files Browse the repository at this point in the history
For some reasons, with msys2 it sometimes raises OSError instead of
BrokenPipeError.

Fixes: mesonbuild#12541
  • Loading branch information
xclaesse committed Nov 24, 2023
1 parent 7f5f432 commit 905f139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/mlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def stop_pager(self) -> None:
try:
self.log_pager.stdin.flush()
self.log_pager.stdin.close()
except BrokenPipeError:
except OSError:
pass
self.log_pager.wait()
self.log_pager = None
Expand Down

0 comments on commit 905f139

Please sign in to comment.