Преглед изворни кода

Secure Python2 str decoding

Valentin Niess пре 4 година
родитељ
комит
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)