Vijay Sitaram

Results 2 comments of Vijay Sitaram

Seeing something similar. Sanitized sample of our code: ``` @tenacity.retry( retry=tenacity.retry_if_exception_type(MyCustomError), stop=tenacity.stop_after_attempt(MAX_ATTEMPTS), ) def _internal(): attempt_number = _internal.retry.statistics["attempt_number"] ... ``` now gives this during execution > KeyError: 'attempt_number'

@hasier same, gotta do what you gotta do. We ended up working around it in our code by using the previous implementation if it exists or falling back to the...