mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Secure Python2 str decoding
This commit is contained in:
@@ -6,5 +6,5 @@ def decode(s):
|
||||
'''
|
||||
try:
|
||||
return s.decode()
|
||||
except AttributeError:
|
||||
except Exception:
|
||||
return str(s)
|
||||
|
||||
Reference in New Issue
Block a user