[MRG] Reraise when the exception is not a TransportableException#429
Merged
aabadie merged 1 commit intojoblib:masterfrom Nov 24, 2016
Merged
Conversation
aabadie
suggested changes
Nov 24, 2016
Contributor
aabadie
left a comment
There was a problem hiding this comment.
LGTM (except a little typo)
joblib/parallel.py
Outdated
| self._aborting = True | ||
|
|
||
| if isinstance(exception, TransportableException): | ||
| # If the backends allows it, cancel or kill remaining running |
Member
Author
There was a problem hiding this comment.
Not my typo ;-) (I just moved the code around) but I'll fix it anyway.
This makes a better stacktrace.
eec3b5d to
94f250d
Compare
Contributor
|
Thanks @lesteve. Feel free to merge. |
Member
Author
Can you change your review to "Approved"? |
Contributor
|
It's done already ;) |
Contributor
|
Ah, I think you can't merge your own PR. So merginf, thanks ! |
yarikoptic
added a commit
to yarikoptic/joblib
that referenced
this pull request
Dec 8, 2016
* commit '0.10.2-55-g660fe5d': (52 commits) MAINT simplify way to skip doctests Do not print frames with IPython internals in format_stack BF(TST): compare for version in pickled filename ignoring full path, and looking for _ as well (joblib#445) [MRG] Remove nose dependency completely. (joblib#441) MAINT add Python 3.5 in setup.py Remove some Python 2.6 specific code [MRG] Make test execution on CI possible through py.test command. (joblib#433) Remove more python 2.6 related code (joblib#440) [MRG] Use commit range for diff in flake8_diff.sh (joblib#439) MAINT remove support for python 2.6 (joblib#437) Improve doc about caching methods (joblib#432) Get the tests passing with py.test MAINT update flake8_diff.sh COSMIT move stdlib imports where they belong [MRG] Replace assert_* methods with "assert" keyword statements. (joblib#430) Reraise when the exception is not a TransportableException (joblib#429) Make sure LICENSE.txt is included in the wheel Add LICENSE.txt Update doc/paralle.rst [MRG+1] Remove all nose imports from test scripts. (joblib#422) ...
yarikoptic
added a commit
to yarikoptic/joblib
that referenced
this pull request
Dec 8, 2016
* releases: (52 commits) MAINT simplify way to skip doctests Do not print frames with IPython internals in format_stack BF(TST): compare for version in pickled filename ignoring full path, and looking for _ as well (joblib#445) [MRG] Remove nose dependency completely. (joblib#441) MAINT add Python 3.5 in setup.py Remove some Python 2.6 specific code [MRG] Make test execution on CI possible through py.test command. (joblib#433) Remove more python 2.6 related code (joblib#440) [MRG] Use commit range for diff in flake8_diff.sh (joblib#439) MAINT remove support for python 2.6 (joblib#437) Improve doc about caching methods (joblib#432) Get the tests passing with py.test MAINT update flake8_diff.sh COSMIT move stdlib imports where they belong [MRG] Replace assert_* methods with "assert" keyword statements. (joblib#430) Reraise when the exception is not a TransportableException (joblib#429) Make sure LICENSE.txt is included in the wheel Add LICENSE.txt Update doc/paralle.rst [MRG+1] Remove all nose imports from test scripts. (joblib#422) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usual caveat about catching an exception, raising the exception and losing some information in the stacktrace.
An example I bumped into when writing a custom parallel backend:
On Python 2.7 (on Python 3 the problem is less severe):
master:
this PR:
On master you lose the line where the error actually happened. In my case it would have saved me a few hours of being really really confused.