This commit is contained in:
Firepup Sixfifty 2023-11-14 16:22:46 -06:00
parent 3065a94f8b
commit 11c2426ba4
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -46,6 +46,6 @@ class bytes(bbytes):
def safe_decode(cls) -> str:
'Calls cls.decode(cls, errors = "ignore"), if that errors, returns a blank bytes object'
try:
return cls.decode(cls, errors = "ignore") # type: ignore
return cls.decode(cls.value, errors = "ignore") # type: ignore
except TypeError:
return "nul"