From a645beae994d1b7ec6dcfca892dca65455a73a05 Mon Sep 17 00:00:00 2001 From: Vijayakumar Subbiah Date: Wed, 26 Jun 2024 13:22:26 -0700 Subject: [PATCH] Resolve AttributeError within NicanError --- can/interfaces/nican.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can/interfaces/nican.py b/can/interfaces/nican.py index f4b1a37f0..8a2efade7 100644 --- a/can/interfaces/nican.py +++ b/can/interfaces/nican.py @@ -89,7 +89,7 @@ class NicanError(CanError): def __init__(self, function, error_code: int, arguments) -> None: super().__init__( - message=f"{function} failed: {get_error_message(self.error_code)}", + message=f"{function} failed: {get_error_message(error_code)}", error_code=error_code, )