We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8e0d5d commit 7359004Copy full SHA for 7359004
canopen/network.py
@@ -244,10 +244,11 @@ def check(self):
244
If an exception caused the thread to terminate, that exception will be
245
raised.
246
"""
247
- exc = self.notifier.exception
248
- if exc is not None:
249
- logger.error("An error has caused receiving of messages to stop")
250
- raise exc
+ if self.notifier is not None:
+ exc = self.notifier.exception
+ if exc is not None:
+ logger.error("An error has caused receiving of messages to stop")
251
+ raise exc
252
253
def __getitem__(self, node_id):
254
return self.nodes[node_id]
0 commit comments