Skip to content

Commit

Permalink
End of run report logging error fix (#357)
Browse files Browse the repository at this point in the history
* geq bug fix

* Better fix

---------

Co-authored-by: Wout Bittremieux <wout@bittremieux.be>
  • Loading branch information
Lilferrit and bittremieux authored Jul 11, 2024
1 parent f090e5f commit 276a50e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion casanovo/casanovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 276a50e

Please sign in to comment.