Skip to content

UnboundLocalError: local variable 'body' referenced before assignment #72

@greenafrican

Description

@greenafrican

Getting the below error when trying:

from intercom import User as User
from intercom import Intercom

Intercom.app_id = 'xxx'
Intercom.app_api_key = 'xxx'

user = User.create(email='me@example.com')

Error:

~/.../app/lib/python2.7/site-packages/intercom/request.pyc in parse_body(cls, resp)
     46         except ValueError:
     47             cls.raise_errors_on_failure(resp)
---> 48         if body.get('type') == 'error.list':
     49             cls.raise_application_errors_on_failure(body, resp.status_code)
     50         return body

UnboundLocalError: local variable 'body' referenced before assignment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions