Skip to content

Commit 276a50e

Browse files
End of run report logging error fix (#357)
* geq bug fix * Better fix --------- Co-authored-by: Wout Bittremieux <wout@bittremieux.be>
1 parent f090e5f commit 276a50e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

casanovo/casanovo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ def setup_logging(
313313
console_handler.setFormatter(console_formatter)
314314
root_logger.addHandler(console_handler)
315315
warnings_logger.addHandler(console_handler)
316-
file_handler = logging.FileHandler(output.with_suffix(".log"))
316+
file_handler = logging.FileHandler(
317+
output.with_suffix(".log"), encoding="utf8"
318+
)
317319
file_handler.setFormatter(log_formatter)
318320
root_logger.addHandler(file_handler)
319321
warnings_logger.addHandler(file_handler)

0 commit comments

Comments
 (0)