Skip to content

Commit

Permalink
Don't log error when missing slave ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Dec 9, 2024
1 parent 5094c9e commit 67e3fc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymodbus/server/async_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ async def server_async_execute(self, request, *addr):
response = await request.update_datastore(context)

except NoSuchSlaveException:
Log.error("requested slave does not exist: {}", request.slave_id)
if self.server.ignore_missing_slaves:
Log.debug("ignored slave that does not exist: {}", request.slave_id)
return # the client will simply timeout waiting for a response
Log.error("requested slave does not exist: {}", request.slave_id)
response = ExceptionResponse(0x00, ExceptionResponse.GATEWAY_NO_RESPONSE)
except Exception as exc: # pylint: disable=broad-except
Log.error(
Expand Down

0 comments on commit 67e3fc5

Please sign in to comment.