tasks: fix handling of unsupported promise.save() calls
the exception can also be an AttributeError. Also do not reraise this exception (in github/tasks.py). This promise saving feature is used for tests.
This commit is contained in:
parent
0b8d1d464d
commit
e5c3559033
3 changed files with 3 additions and 4 deletions
|
@ -38,9 +38,8 @@ def full_github_relister(self, split=None, **lister_args):
|
|||
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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue