]> git.phdru.name Git - extfs.d.git/commitdiff
Fix(torrent): Do not print locale-related warnings
authorOleg Broytman <phd@phdru.name>
Wed, 2 Aug 2023 20:20:30 +0000 (23:20 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 2 Aug 2023 20:20:30 +0000 (23:20 +0300)
torrent

diff --git a/torrent b/torrent
index 211fdaf85c5b7e1542dd45b1c7b863795943886a..63632420629529168b7325423f6b2df8413a57e1 100755 (executable)
--- 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()