mirror of https://github.com/MISP/PyMISP
fix: Use the recommended approach to add an attribute
parent
78d2ac5778
commit
8edd536be8
|
@ -216,7 +216,7 @@
|
|||
"del event.timestamp\n",
|
||||
"\n",
|
||||
"## Add the attribute to the event\n",
|
||||
"event.attributes.append(attribute)\n",
|
||||
"event.add_attribute(**attribute)\n",
|
||||
"\n",
|
||||
"## Push the updated event to MISP\n",
|
||||
"event_dict = misp.update(event)\n",
|
||||
|
|
Loading…
Reference in New Issue