update
This commit is contained in:
parent
88e6274bba
commit
21b477d8bf
|
|
@ -242,6 +242,8 @@ class SyncOAToDidiLegalEntitySyncJob(BaseJob):
|
|||
extra=extra,
|
||||
)
|
||||
raw = resp.text or ""
|
||||
content_type = resp.headers.get("content-type", "") if getattr(resp, "headers", None) else ""
|
||||
logger.info("Seeyon export_form_soap done templateCode=%s content_length=%s content_type=%s base_url=%s", oa_template_code, len(raw), content_type, oa_base_url)
|
||||
finally:
|
||||
seeyon.close()
|
||||
|
||||
|
|
@ -251,6 +253,7 @@ class SyncOAToDidiLegalEntitySyncJob(BaseJob):
|
|||
inner2 = inner.get("data") or {}
|
||||
|
||||
definition = inner2.get("definition") or {}
|
||||
logger.info(definition)
|
||||
fields = definition.get("fields") or []
|
||||
if not isinstance(fields, list):
|
||||
raise RuntimeError("OA export invalid: definition.fields is not a list")
|
||||
|
|
|
|||
Loading…
Reference in New Issue