Skip to content

You need to add exception handler for searchterm #3

Description

@HamoudAQ

I noticed that if I pass a campaign that is new then it would break, as this is the response from apple:
{'data': {'reportingDataResponse': {'row': []}}, 'pagination': {'totalResults': 0, 'startIndex': 0, 'itemsPerPage': 0}, 'error': None}
and obviously there's no grandTotals which is mentioned in the apy.py, line 1429
res["data"]["reportingDataResponse"]["grandTotals"])

a quick solution is to add try and except

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions