From 1f6a8ba424c2a57a208c7747c85e3daa9bb69247 Mon Sep 17 00:00:00 2001 From: allankouidri Date: Thu, 15 Jun 2023 10:23:46 +0200 Subject: [PATCH] Fix missing encoding --- src/super_gradients/common/abstractions/mute_processes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/super_gradients/common/abstractions/mute_processes.py b/src/super_gradients/common/abstractions/mute_processes.py index 5d8694b702..3d34745c95 100644 --- a/src/super_gradients/common/abstractions/mute_processes.py +++ b/src/super_gradients/common/abstractions/mute_processes.py @@ -27,7 +27,7 @@ def mute_current_process(): # Ignore prints import sys - sys.stdout = open(os.devnull, "w") + sys.stdout = open(os.devnull, "w", encoding="utf-8") # Only show ERRORS process_loggers = [logging.getLogger(name) for name in logging.root.manager.loggerDict]