Skip to content

'ModbusTcpClient' object has no attribute 'handle_local_echo' if client != ModbusSerialClient #494

@wildstray

Description

@wildstray

Branch: dev

File "/home/andrea/LWE/MPO/Myna/wolf/pymodbus/transaction.py", line 242, in _transact
if self.client.handle_local_echo is True:
AttributeError: 'ModbusTcpClient' object has no attribute 'handle_local_echo'

Suggested fix:

if getattr(self.client, 'handle_local_echo', False) is True:

Instead of:

if self.client.handle_local_echo is True:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions