浏览代码

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)