From 276a50ee2dafe645b6f48dde62b43ca000274e82 Mon Sep 17 00:00:00 2001 From: Gwenneth Straub Date: Thu, 11 Jul 2024 10:58:29 -0700 Subject: [PATCH] End of run report logging error fix (#357) * geq bug fix * Better fix --------- Co-authored-by: Wout Bittremieux --- casanovo/casanovo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/casanovo/casanovo.py b/casanovo/casanovo.py index 3a1416c1..d93b748c 100644 --- a/casanovo/casanovo.py +++ b/casanovo/casanovo.py @@ -313,7 +313,9 @@ def setup_logging( console_handler.setFormatter(console_formatter) root_logger.addHandler(console_handler) warnings_logger.addHandler(console_handler) - file_handler = logging.FileHandler(output.with_suffix(".log")) + file_handler = logging.FileHandler( + output.with_suffix(".log"), encoding="utf8" + ) file_handler.setFormatter(log_formatter) root_logger.addHandler(file_handler) warnings_logger.addHandler(file_handler)