Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected string or buffer during init #1

Closed
markscl opened this issue May 15, 2017 · 0 comments
Closed

TypeError: expected string or buffer during init #1

markscl opened this issue May 15, 2017 · 0 comments
Assignees
Labels

Comments

@markscl
Copy link

markscl commented May 15, 2017

Line 136 in init.py reads:

payload = json.loads(RISK_JSON)

This throws a type error because RISK_JSON is a Python dict and json.loads is expecting a string. Changing it to read:

payload = json.loads(json.dumps(RISK_JSON))

resolves the issue.

@morissette morissette self-assigned this May 25, 2017
@morissette morissette added the bug label May 25, 2017
morissette added a commit that referenced this issue May 25, 2017
morissette added a commit that referenced this issue May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants