Secure Python2 str decoding

This commit is contained in:
Valentin Niess
2022-02-12 10:23:00 +01:00
parent a70e9977c4
commit f381494aaf

View File

@@ -6,5 +6,5 @@ def decode(s):
'''
try:
return s.decode()
except AttributeError:
except Exception:
return str(s)