fix: can't instantiate basestring

fixes #76
pull/77/head
Hannah Ward 2017-05-02 12:09:59 +01:00
parent bcffa2f310
commit e7f9731179
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class PyMISP(object):
if not errors and to_return.get('message'):
errors.append(to_return['message'])
else:
errors.append(basestring(response.status_code))
errors.append(str(response.status_code))
errors += self.flatten_error_messages(to_return)
if errors:
to_return['errors'] = errors