Skip to content

Commit d02f3a7

Browse files
committed
Add docstring to read_response() and detail exceptions.
1 parent 3de9bce commit d02f3a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

canopen/sdo/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ def send_request(self, request):
6565
break
6666

6767
def read_response(self):
68+
"""Wait for an SDO response and handle timeout or remote abort.
69+
70+
:raises canopen.SdoAbortedError:
71+
When receiving an SDO abort response from the server.
72+
:raises canopen.SdoCommunicationError:
73+
After timeout with no response received.
74+
"""
6875
try:
6976
response = self.responses.get(
7077
block=True, timeout=self.RESPONSE_TIMEOUT)

0 commit comments

Comments
 (0)