Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnwrapError is not pickleable #200

Open
indigoviolet opened this issue Dec 4, 2024 · 0 comments
Open

UnwrapError is not pickleable #200

indigoviolet opened this issue Dec 4, 2024 · 0 comments

Comments

@indigoviolet
Copy link

In [38]: pickle.loads(pickle.dumps(UnwrapError(Err(None), 'foo')))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[38], line 1
----> 1 pickle.loads(pickle.dumps(UnwrapError(Err(None), 'foo')))

TypeError: UnwrapError.__init__() missing 1 required positional argument: 'message'

The reason this matters is that sometimes you want exceptions to come back over process boundaries, for ex. while using multiprocessing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant