idiot.
This commit is contained in:
parent
3065a94f8b
commit
11c2426ba4
1 changed files with 1 additions and 1 deletions
|
@ -46,6 +46,6 @@ class bytes(bbytes):
|
||||||
def safe_decode(cls) -> str:
|
def safe_decode(cls) -> str:
|
||||||
'Calls cls.decode(cls, errors = "ignore"), if that errors, returns a blank bytes object'
|
'Calls cls.decode(cls, errors = "ignore"), if that errors, returns a blank bytes object'
|
||||||
try:
|
try:
|
||||||
return cls.decode(cls, errors = "ignore") # type: ignore
|
return cls.decode(cls.value, errors = "ignore") # type: ignore
|
||||||
except TypeError:
|
except TypeError:
|
||||||
return "nul"
|
return "nul"
|
||||||
|
|
Loading…
Reference in a new issue