Skip to content

Commit

Permalink
transport: Don't raise a RunTimeError in ModbusProtocol.error_receive…
Browse files Browse the repository at this point in the history
…d() (#1758)
  • Loading branch information
lsgunth authored Sep 2, 2023
1 parent 8902ac5 commit fb80c15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion pymodbus/transport/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ def eof_received(self):
def error_received(self, exc):
"""Get error detected in UDP."""
Log.debug("-> error_received {}", exc)
raise RuntimeError(str(exc))

# --------- #
# callbacks #
Expand Down
5 changes: 0 additions & 5 deletions test/sub_transport/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ async def test_eof_received(self, client):
"""Test eof_received."""
client.eof_received()

async def test_error_received(self, client):
"""Test error_received."""
with pytest.raises(RuntimeError):
client.error_received(Exception("test call"))

async def test_callbacks(self, use_clc):
"""Test callbacks."""
client = ModbusProtocol(use_clc, False)
Expand Down

0 comments on commit fb80c15

Please sign in to comment.