retry: Add support for tenacity < 5.0
This fixes swh-storage debian package build on buster as python3-tenacity version is 4.12.
Other solution is to backport python3-tenacity from sid.
Migrated from D2700 (view on Phabricator)
Staging instance, all changes can be removed at any time
This fixes swh-storage debian package build on buster as python3-tenacity version is 4.12.
Other solution is to backport python3-tenacity from sid.
Migrated from D2700 (view on Phabricator)