fix: Response data type mismatch in _send_attributes()

Fix #206
pull/232/head
Raphaël Vinot 2018-05-30 15:27:20 +02:00
parent 9648e31cdd
commit c99fef2129
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ class PyMISP(object):
if not event_id:
raise PyMISPError("Unable to find the ID of the event to update.")
if not attributes:
return {'error': 'No attributes.'}
return [{'error': 'No attributes.'}]
# Propals need to be posted in single requests
if proposal: