Skip to content

Commit 174d560

Browse files
vijaysubbiah20Vijayakumar Subbiah
andauthored
Resolve AttributeError within NicanError (hardbyte#1806)
Co-authored-by: Vijayakumar Subbiah <vijay@Vijayakumars-MacBook-Pro.local>
1 parent b552f1d commit 174d560

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)