Skip to content

ord() expected string of length 1, but int found #170

@oryxr

Description

@oryxr

When I run pymodbus-1.3.0-rc1 with debug activate, I have this error:
ord() expected string of length 1, but int found

I remove ord function in transaction.py and sync.py same as:
# _logger.warning("cleanup recv buffer before send: " + " ".join([hex(ord(x)) for x in result]))
to
_logger.warning("cleanup recv buffer before send: " + " ".join([hex(x) for x in result]))

and it run.
Why do you add the ord() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions