Skip to content

add_email_to_blacklist returns Object of type bytes is not JSON serializable #45

@4eRTuk

Description

@4eRTuk

There is a docstring @param email: string emails divided by commas 'email_1, ..., email_n', but in this line base64.b64encode expects bytes type. If I pass bytes, then there will be an exception later in __send_request in this line. I think it will be better to call .encode('utf-8') on email parameter before calling base64.b64encode.

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