Explorar o código

Secure Python2 str decoding

Valentin Niess %!s(int64=4) %!d(string=hai) anos
pai
achega
f381494aaf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      python_appimage/utils/compat.py

+ 1 - 1
python_appimage/utils/compat.py

@@ -6,5 +6,5 @@ def decode(s):
     '''
     try:
         return s.decode()
-    except AttributeError:
+    except Exception:
         return str(s)