Skip to content

[BUG] v12.4 breaks PicklePersistence #1761

@Bibo-Joshi

Description

@Bibo-Joshi

Steps to reproduce

  1. Have a bot using PicklePersistence with singlefile=True

  2. Upgrade to v12.4

  3. restart bot

Expected behaviour

pickled file is read correctly

Actual behaviour

key error bot_data is thrown

Current workaround:

Add an empty dict bot_data to the file manually. Quick and dirty script:

import pickle

filename = 'my_pickle_persistence_file'

with (open(filename, 'rb')) as file:
    data = pickle.load(file)

data['bot_data'] = {}

with open(filename, 'wb') as f:
    pickle.dump(data, f)

Will be closed by #1760

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy