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 67b36e6 commit 9505df1Copy full SHA for 9505df1
doipclient/connectors.py
@@ -1,4 +1,5 @@
1
from udsoncan.connections import BaseConnection
2
+from udsoncan.exceptions import TimeoutException
3
4
5
class DoIPClientUDSConnector(BaseConnection):
@@ -43,7 +44,11 @@ def specific_send(self, payload):
43
44
self._connection.send_diagnostic(bytearray(payload))
45
46
def specific_wait_frame(self, timeout=2):
- return bytes(self._connection.receive_diagnostic(timeout=timeout))
47
+ try:
48
+ return bytes(self._connection.receive_diagnostic(timeout=timeout))
49
+ except TimeoutError as e:
50
+ raise TimeoutException(str(e)) from e
51
+
52
53
def empty_rxqueue(self):
54
self._connection.empty_rxqueue()
0 commit comments