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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions