fix: Use the recommended approach to add an attribute

pull/232/head
Raphaël Vinot 2018-04-24 09:07:21 +02:00
parent 78d2ac5778
commit 8edd536be8
1 changed files with 1 additions and 1 deletions

View File

@ -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",