v0.4.4
- If
Threads.strict()
raises just one error, don't wrap it withManyError
(#79). Thestrict
method in thegather
function of theparallel.py
module in thedatabricks/labs/blueprint
package has been updated to change the way it handles errors. Previously, if any task in thetasks
sequence failed, thestrict
method would raise aManyError
exception containing all the errors. With this change, if only one error occurs, that error will be raised directly without being wrapped in aManyError
exception. This simplifies error handling and avoids unnecessary nesting of exceptions. Additionally, the__tracebackhide__
dunder variable has been added to the method to improve the readability of tracebacks by hiding it from the user. This update aims to provide a more streamlined and user-friendly experience for handling errors in parallel processing tasks.
Contributors: @nfx