Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pymodbus/server/requesthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ async def handle_request(self):
response = await self.last_pdu.update_datastore(context)

except NoSuchIdException:
Log.error("requested device id does not exist: {}", self.last_pdu.dev_id)
if self.server.ignore_missing_devices:
Log.debug("ignoring request for unknown device id: {}", self.last_pdu.dev_id)
return # the client will simply timeout waiting for a response
Log.error("requested device id does not exist: {}", self.last_pdu.dev_id)
response = ExceptionResponse(self.last_pdu.function_code, ExcCodes.GATEWAY_NO_RESPONSE)
except Exception as exc: # pylint: disable=broad-except
Log.error(
Expand Down