diff --git a/overrides.py b/overrides.py index 9b51dd5..6b98bf0 100644 --- a/overrides.py +++ b/overrides.py @@ -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"