diff --git a/swh/lister/bitbucket/tasks.py b/swh/lister/bitbucket/tasks.py --- a/swh/lister/bitbucket/tasks.py +++ b/swh/lister/bitbucket/tasks.py @@ -38,7 +38,7 @@ self.log.debug('%s OK (spawned %s subtasks)' % (self.name, len(ranges))) try: promise.save() # so that we can restore the GroupResult in tests - except NotImplementedError: + except (NotImplementedError, AttributeError): self.log.info('Unable to call save_group with current result backend.') return promise.id diff --git a/swh/lister/github/tasks.py b/swh/lister/github/tasks.py --- a/swh/lister/github/tasks.py +++ b/swh/lister/github/tasks.py @@ -38,9 +38,8 @@ self.log.debug('%s OK (spawned %s subtasks)' % (self.name, len(ranges))) try: promise.save() # so that we can restore the GroupResult in tests - except NotImplementedError: + except (NotImplementedError, AttributeError): self.log.info('Unable to call save_group with current result backend.') - raise return promise.id diff --git a/swh/lister/gitlab/tasks.py b/swh/lister/gitlab/tasks.py --- a/swh/lister/gitlab/tasks.py +++ b/swh/lister/gitlab/tasks.py @@ -47,7 +47,7 @@ self.log.debug('%s OK (spawned %s subtasks)' % (self.name, len(ranges))) try: promise.save() - except NotImplementedError: + except (NotImplementedError, AttributeError): self.log.info('Unable to call save_group with current result backend.') return promise.id