diff --git a/pymisp/api.py b/pymisp/api.py index 1e52180..ab611be 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -417,7 +417,7 @@ class PyMISP(object): else: session = self.__prepare_session() url = urljoin(self.root_url, 'attributes/add/{}'.format(eventID_to_update)) - response = session.post(url, data=json.dumps(a, cls=EncodeUpdate)) + response = self._check_response(session.post(url, data=json.dumps(a, cls=EncodeUpdate))) return response def add_named_attribute(self, event, type_value, value, category=None, to_ids=False, comment=None, distribution=None, proposal=False, **kwargs):