Revert "nanterre: toujours retourner action.human_result bis (fixes #18477)"
This reverts commit a2047be846
.
This commit is contained in:
parent
a2047be846
commit
f0c0cb4a6d
|
@ -592,11 +592,12 @@ def synchronize(applications, individus, meta=None, transaction=None):
|
|||
app_dfn = utils.get_application(application)
|
||||
assert 'rsu_ws_url' in app_dfn, 'application %s has no rsu_ws_url' % application
|
||||
action = Synchronization.create(application, individus, meta=meta)
|
||||
Job.create(action, transaction=transaction)
|
||||
if action.human_result:
|
||||
yield action.human_result
|
||||
else:
|
||||
yield 'Erreur interne'
|
||||
job = Job.create(action, transaction=transaction)
|
||||
if job.state != Job.STATE_SUCCESS:
|
||||
if action.human_result:
|
||||
yield action.human_result
|
||||
else:
|
||||
yield 'Erreur interne'
|
||||
|
||||
|
||||
class SimpleSynchro(FragmentBuilder):
|
||||
|
|
Loading…
Reference in New Issue