backoff
backoff copied to clipboard
Slightly failing after max tries with raise_on_giveup=False erroring
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