Skip to content

Wrong exception handling: Can't append str to dict #147

Description

@coreGreenberet

If you are making an API call to an organization which doesn't have the API enabled, then you will receive a dictionary as the response message.

Response:

{'errors': ['To make requests you must first enable API access via https://nXXX.meraki.com/o/XXXXX/manage/organization/edit']

The current APIErrror treats it as an missing api key (which error message is just a text) and tries to add a string to a dict.
https://github.com/meraki/dashboard-api-python/blob/master/meraki/exceptions.py#L24

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