Thanks Godsun, but I have tried the following code and the problem persists: Sorry, but the indentation doesn't work here. import meraki API_KEY = 'API-KEY' dashboard = meraki.DashboardAPI(API_KEY) responseOrg = dashboard.organizations.getOrganizations() for rowOrg in responseOrg: try: organization_id = rowOrg['id'] response = dashboard.appliance.getOrganizationApplianceVpnStatuses(organization_id, total_pages='all') ---> ERROR print(response) except meraki.AsyncAPIError as e: if "400 Bad Request" in str(e): print("Error:") LOG: 2020-09-27 20:57:08 meraki: INFO > GET https://api.meraki.com/api/v1/organizations 2020-09-27 20:57:09 meraki: INFO > organizations, getOrganizations - 200 OK 2020-09-27 20:57:09 meraki: INFO > GET https://api.meraki.com/api/v1/organizations/<ORG>/appliance/vpn/statuses 2020-09-27 20:57:10 meraki: ERROR > appliance, getOrganizationApplianceVpnStatuses - 400 Bad Request, {'errors': ['Site-to-site VPN not enabled in your organization']} When line whit tag ERROR is executed, the error occurs and the exception is not caught.The code does work with Org that have Site-to-site VPN configured, but with those that do not have it, this error occurs.
... View more