From: Oleg Broytman Date: Wed, 2 Aug 2023 20:20:30 +0000 (+0300) Subject: Fix(torrent): Do not print locale-related warnings X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=fb726a88fb21362f8256ad62f059d8657ec82c30;p=extfs.d.git Fix(torrent): Do not print locale-related warnings --- 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()