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

Cannot instantiate basestring (Python2) #76

Closed
kralca opened this issue May 2, 2017 · 2 comments
Closed

Cannot instantiate basestring (Python2) #76

kralca opened this issue May 2, 2017 · 2 comments

Comments

@kralca
Copy link

kralca commented May 2, 2017

An exception is thrown at api.py line 218 for Python2 as the basestring type cannot be instantiated.

Offending line:
errors.append(basestring(response.status_code))

Documentation:
https://docs.python.org/2.7/library/functions.html#basestring

@FloatingGhost
Copy link
Member

fix: Don't use python 2!

Also y'know I fixed it

@Rafiot
Copy link
Member

Rafiot commented May 2, 2017

Thanks! ;)

3c7 pushed a commit to 3c7/PyMISP that referenced this issue Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants