Browse Source

Secure Python2 str decoding

Valentin Niess 3 years ago
parent
commit
f381494aaf
1 changed files with 1 additions and 1 deletions
  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)