From c99fef2129c5c32f45385926aedf74bd0a897925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 30 May 2018 15:27:20 +0200 Subject: [PATCH] fix: Response data type mismatch in _send_attributes() Fix #206 --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index df71194..c95c014 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -488,7 +488,7 @@ class PyMISP(object): if not event_id: raise PyMISPError("Unable to find the ID of the event to update.") if not attributes: - return {'error': 'No attributes.'} + return [{'error': 'No attributes.'}] # Propals need to be posted in single requests if proposal: