mirror of https://github.com/MISP/PyMISP
Quick and dirty fix for #97
parent
d75cb6eacb
commit
a4ac1b2c7f
|
@ -411,6 +411,8 @@ class PyMISP(object):
|
||||||
eventID_to_update = e.uuid
|
eventID_to_update = e.uuid
|
||||||
if eventID_to_update is None:
|
if eventID_to_update is None:
|
||||||
raise PyMISPError("Unable to find the ID of the event to update")
|
raise PyMISPError("Unable to find the ID of the event to update")
|
||||||
|
if not attributes:
|
||||||
|
return {'error': 'No attributes.'}
|
||||||
for a in attributes:
|
for a in attributes:
|
||||||
if proposal:
|
if proposal:
|
||||||
response = self.proposal_add(eventID_to_update, a)
|
response = self.proposal_add(eventID_to_update, a)
|
||||||
|
|
Loading…
Reference in New Issue