diff --git a/pynitrokey/trussed/bootloader/lpc55.py b/pynitrokey/trussed/bootloader/lpc55.py index 6686fb28..cd7a2a86 100644 --- a/pynitrokey/trussed/bootloader/lpc55.py +++ b/pynitrokey/trussed/bootloader/lpc55.py @@ -60,7 +60,10 @@ def path(self) -> str: @property def status(self) -> Tuple[int, str]: code = self.device.status_code - message = StatusCode.desc(code) + try: + message = StatusCode.get_description(code) + except AttributeError: + message = StatusCode.desc(code) return (code, message) def close(self) -> None: