pybreaker icon indicating copy to clipboard operation
pybreaker copied to clipboard

Exception blacklist instead of whitelist?

Open n2taylor opened this issue 10 years ago • 1 comments

For the use case I'm working on, I would prefer to specify a list of exceptions that WILL count against the breaker's fail_counter, rather than a list of exceptions that shouldn't be counted against it. That would prevent any unexpected run-time error from tripping the breaker. What do you think?

n2taylor avatar Dec 03 '15 21:12 n2taylor

I second this, as I have a several use cases myself that this would be extremely useful (e.g. to disable only certain features based on a limited set of exceptions).

labrys avatar Mar 16 '16 08:03 labrys