Skip to content

Commit a645bea

Browse files
Vijayakumar SubbiahVijayakumar Subbiah
Vijayakumar Subbiah
authored and
Vijayakumar Subbiah
committed
Resolve AttributeError within NicanError
1 parent b552f1d commit a645bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/interfaces/nican.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class NicanError(CanError):
8989

9090
def __init__(self, function, error_code: int, arguments) -> None:
9191
super().__init__(
92-
message=f"{function} failed: {get_error_message(self.error_code)}",
92+
message=f"{function} failed: {get_error_message(error_code)}",
9393
error_code=error_code,
9494
)
9595

0 commit comments

Comments
 (0)