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

DM-23477: Allow ScalarError to be constructed from a single parameter #118

Merged
merged 1 commit into from Feb 13, 2020

Conversation

timj
Copy link
Member

@timj timj commented Feb 12, 2020

When this class is used in multiprocessing environment ScalarError
must be pickled. When being pickled only the single string passed
to TypeError is serialized. This leads to an initialization error
when the object is recreated and breaks error reporting.

Change things so that a single parameter acts like any other
standard exception.

When this class is used in multiprocessing environment ScalarError
must be pickled. When being pickled only the single string passed
to TypeError is serialized. This leads to an initialization error
when the object is recreated and breaks error reporting.

Change things so that a single parameter acts like any other
standard exception.
@timj timj requested a review from natelust February 12, 2020 19:58
@natelust
Copy link
Contributor

I prefer to not implement reduce if we can avoid it. I guess we never had a failure at this specific point with multiprocessing turned on before, I cant see any minor change to python version could cause this to start failing.

@timj timj merged commit 0bc810d into master Feb 13, 2020
@timj timj deleted the tickets/DM-23477 branch February 13, 2020 03:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants