mirror of https://github.com/MISP/PyMISP
new: return the new object in `add_object`
parent
454ec18c58
commit
8c81145dc0
|
@ -674,6 +674,7 @@ class MISPEvent(AbstractMISP):
|
||||||
raise InvalidMISPObject("An object to add to an existing Event needs to be either a MISPObject, or a plain python dictionary")
|
raise InvalidMISPObject("An object to add to an existing Event needs to be either a MISPObject, or a plain python dictionary")
|
||||||
self.Object.append(misp_obj)
|
self.Object.append(misp_obj)
|
||||||
self.edited = True
|
self.edited = True
|
||||||
|
return misp_obj
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
if hasattr(self, 'info'):
|
if hasattr(self, 'info'):
|
||||||
|
|
Loading…
Reference in New Issue