From fb726a88fb21362f8256ad62f059d8657ec82c30 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 2 Aug 2023 23:20:30 +0300 Subject: [PATCH] Fix(torrent): Do not print locale-related warnings --- torrent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torrent b/torrent index 211fdaf..6363242 100755 --- a/torrent +++ b/torrent @@ -58,7 +58,7 @@ if use_locale: try: lcAll = locale.getdefaultlocale() except locale.Error as err: - print("WARNING:", err, file=sys.stderr) + #print("WARNING:", err, file=sys.stderr) lcAll = [] if len(lcAll) == 2: @@ -67,7 +67,7 @@ if use_locale: try: default_encoding = locale.getpreferredencoding() except locale.Error as err: - print("WARNING:", err, file=sys.stderr) + #print("WARNING:", err, file=sys.stderr) default_encoding = sys.getdefaultencoding() else: default_encoding = sys.getdefaultencoding() -- 2.39.5