mirror of https://github.com/MISP/PyMISP
parent
bcffa2f310
commit
e7f9731179
|
@ -215,7 +215,7 @@ class PyMISP(object):
|
||||||
if not errors and to_return.get('message'):
|
if not errors and to_return.get('message'):
|
||||||
errors.append(to_return['message'])
|
errors.append(to_return['message'])
|
||||||
else:
|
else:
|
||||||
errors.append(basestring(response.status_code))
|
errors.append(str(response.status_code))
|
||||||
errors += self.flatten_error_messages(to_return)
|
errors += self.flatten_error_messages(to_return)
|
||||||
if errors:
|
if errors:
|
||||||
to_return['errors'] = errors
|
to_return['errors'] = errors
|
||||||
|
|
Loading…
Reference in New Issue