Closed mnencia closed 1 year ago
Thaks for your suggestion, @mnencia.
The thing is, that bare Except is valid within Eventually. This is the way to exit the Eventually loop in case of a non recoverable error.
I'm not dute I know how to automatically distinguish between the two use cases. Do you have any idea?
@mnencia, if you don't have any objections, I'll close this issue. Please reopen if you have any idea.
Consider the following code:
You could expect that in case of any function returns an error, the block is retried, but it is not.
What you usually want to do is:
or
I think highlighting the presence of a bare Expect inside an Eventually call would be useful.