Skip to content

Commit 0906911

Browse files
authored
RuntimeException changed to RuntimeError. Fix #22
1 parent b4d90ac commit 0906911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

udsoncan/connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def specific_send(self, payload):
381381

382382
def specific_wait_frame(self, timeout=2):
383383
if not self.opened:
384-
raise RuntimeException("Connection is not open")
384+
raise RuntimeError("Connection is not open")
385385

386386
timedout = False
387387
frame = None
@@ -477,7 +477,7 @@ def specific_send(self, payload):
477477

478478
def specific_wait_frame(self, timeout=2):
479479
if not self.opened:
480-
raise RuntimeException("Connection is not open")
480+
raise RuntimeError("Connection is not open")
481481

482482
timedout = False
483483
frame = None

0 commit comments

Comments
 (0)