Skip to content

Commit

Permalink
Check a little better on the return object
Browse files Browse the repository at this point in the history
  • Loading branch information
pamela-joslyn-4ss committed Nov 25, 2024
1 parent c10c2fc commit a168f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fourinsight/campaigns/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def get_swimops_campaign(self, campaign_id):
}

response = self._get_payload(self._url(f"/{campaign_id}/Swimops"))
if not response:
if not response or not isinstance(response, list):
return
response_out = _dict_rename(response[0], response_map)
return response_out
Expand Down

0 comments on commit a168f17

Please sign in to comment.