Quick and dirty fix for #97

pull/82/head
Raphaël Vinot 2017-04-14 14:41:55 +02:00
parent d75cb6eacb
commit a4ac1b2c7f
1 changed files with 2 additions and 0 deletions

View File

@ -411,6 +411,8 @@ class PyMISP(object):
eventID_to_update = e.uuid
if eventID_to_update is None:
raise PyMISPError("Unable to find the ID of the event to update")
if not attributes:
return {'error': 'No attributes.'}
for a in attributes:
if proposal:
response = self.proposal_add(eventID_to_update, a)