Skip to content

Commit 174d560

Browse files
vijaysubbiah20Vijayakumar Subbiah
andauthored
Resolve AttributeError within NicanError (#1806)
Co-authored-by: Vijayakumar Subbiah <[email protected]>
1 parent b552f1d commit 174d560

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)