Переглянути джерело

Secure Python2 str decoding

Valentin Niess 3 роки тому
батько
коміт
f381494aaf
1 змінених файлів з 1 додано та 1 видалено
  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)