Handle Adobe company profile strings
This commit is contained in:
parent
e19bd68ebd
commit
e1ae1c91af
|
|
@ -91,6 +91,8 @@ async def _fetch_adobe_profile(access_token: str) -> dict:
|
|||
return {}
|
||||
|
||||
company = data.get("company") or {}
|
||||
if not isinstance(company, dict):
|
||||
company = {"name": str(company)} if company else {}
|
||||
account_name = (
|
||||
company.get("name")
|
||||
or data.get("companyName")
|
||||
|
|
|
|||
Loading…
Reference in New Issue