Handle Adobe company profile strings

This commit is contained in:
Paul Huliganga 2026-04-22 12:18:42 -04:00
parent e19bd68ebd
commit e1ae1c91af
1 changed files with 2 additions and 0 deletions

View File

@ -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")