Skip to content

_request_raw method does not handle port as a string #5

@chiyu-Charon

Description

@chiyu-Charon

In the _request_raw method, the port parameter is not explicitly cast to an integer. If port is provided as a string, Python will raise a TypeError: can't convert str to int.
Maybe it can be fix like this:

if isinstance(port, str):
    port = int(port)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions