Open
Description
We expected company_not_found
to raise a ResourceNotFound
, but currently it raises an UnexpectedError
We tracked this down to:
https://github.com/intercom/python-intercom/blob/master/intercom/errors.py#L68
I think company_not_found
just needs to be mapped to ResourceNotFound
from intercom.client import Client
intercom = Client(personal_access_token='YOUR TOKEN')
try:
intercom.companies.find(company_id='does not exist')
except Exception as e:
print(type(e))
<class 'intercom.errors.UnexpectedError'>
Metadata
Metadata
Assignees
Labels
No labels