Skip to content

Commit

Permalink
fix: return empty dict if no customer results
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveagent57 committed Feb 25, 2025
1 parent 4836aef commit f1925e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise_access/apps/api_client/lms_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_enterprise_customer_data(self, enterprise_customer_uuid=None, enterprise
payload = response.json()
if results := payload.get('results'):
return results[0]
return payload
return {}
except requests.exceptions.HTTPError as exc:
logger.exception(exc)
raise
Expand Down

0 comments on commit f1925e0

Please sign in to comment.