From 8edd536be823ef253bccc4d6a1a7fb0271be9fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 24 Apr 2018 09:07:21 +0200 Subject: [PATCH] fix: Use the recommended approach to add an attribute --- docs/tutorial/PyMISP_tutorial.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/PyMISP_tutorial.ipynb b/docs/tutorial/PyMISP_tutorial.ipynb index 7fc32a1..dba45db 100644 --- a/docs/tutorial/PyMISP_tutorial.ipynb +++ b/docs/tutorial/PyMISP_tutorial.ipynb @@ -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",