-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around for JuliaLang/julia#19979
Retry.jl used to use try/catch inside the catch block's "@ignore if ..." condition. The purpose of this was to treat if conditions that throw errors as false. e.f. @ignore if e.reason == "Foo" end might throw an exception if e does not have a reason field. Retry.jl used to allow this and treat it as false. At present doing a nested try/catch in a catch block causes the Julia stacktrace to be corrupted: JuliaLang/julia#19979 (comment) After this commit, Retry.jl not requires @ignore if conditions to return true or false and not throw exceptions. The ecode() function has been exported to allow replacing @ignore if e.code == "404" end with @ignore if ecode(e) == "404" end
- Loading branch information
1 parent
2d80a29
commit 6c565a3
Showing
4 changed files
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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