diff --git a/ms2rescore/feature_generators/im2deep.py b/ms2rescore/feature_generators/im2deep.py index 552b728..772f685 100644 --- a/ms2rescore/feature_generators/im2deep.py +++ b/ms2rescore/feature_generators/im2deep.py @@ -88,7 +88,7 @@ def add_features(self, psm_list: PSMList) -> None: # Disable wild logging to stdout by TensorFlow, unless in debug mode with ( - contextlib.redirect_stdout(open(os.devnull, "w")) + contextlib.redirect_stdout(open(os.devnull, "w", encoding="utf-8")) if not self._verbose else contextlib.nullcontext() ):