backoff icon indicating copy to clipboard operation
backoff copied to clipboard

Slightly failing after max tries with raise_on_giveup=False erroring

Open kannor opened this issue 4 years ago • 0 comments

TypeError: expo() got an unexpected keyword argument 'raise_on_giveup'

@backoff.on_exception(
    backoff.expo,
    (ConnectionError,),
    max_tries=3,
    raise_on_giveup=False,
)
async def _create_order():
    created_order = await some_callback()
    return created_order

kannor avatar Dec 07 '21 20:12 kannor