Skip to content

imapclient.fixed_offset.FixedOffset cannot be unpickled #388

@freddrake

Description

@freddrake

With a pickled imapclient.fixed_offset.FixedOffset timezone with an offset of datetime.timedelta(0), unpickling raises an exception:

TypeError: __init__() missing 1 required positional argument: 'minutes'

I can work around this by adapting the timestamps returned for INTERNALDATE to use datetime.timezone instances instead of FixedOffset instances, but this shouldn't be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions