Skip to content

Commit 96e9706

Browse files
authored
fix #1292
1 parent af55b0a commit 96e9706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

can/interfaces/iscan.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ class IscanError(CanError):
187187

188188
def __init__(self, function, error_code: int, arguments) -> None:
189189
try:
190-
description = ": " + self.ERROR_CODES[self.error_code]
190+
description = ": " + self.ERROR_CODES[error_code]
191191
except KeyError:
192192
description = ""
193193

194194
super().__init__(
195-
f"Function {self.function.__name__} failed{description}",
195+
f"Function {function.__name__} failed{description}",
196196
error_code=error_code,
197197
)
198198

0 commit comments

Comments
 (0)