Forráskód Böngészése

Secure Python2 str decoding

Valentin Niess 3 éve
szülő
commit
f381494aaf
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)