From b3dee88fabc03f1958485fb369e83f698748627e Mon Sep 17 00:00:00 2001 From: Tom King Date: Mon, 4 Oct 2021 11:52:35 +0100 Subject: [PATCH] fix: Fix nosetests --- pymisp/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pymisp/api.py b/pymisp/api.py index 9ec95dd..cf0fdec 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1929,11 +1929,11 @@ class PyMISP: """ sharing_group_id = get_uuid_or_id_from_abstract_misp(sharing_group) r = self._prepare_request('GET', f'sharing_groups/view/{sharing_group_id}') - sharing_group = self._check_json_response(r) - if not (self.global_pythonify or pythonify) or 'errors' in sharing_group: - return sharing_group + sharing_group_resp = self._check_json_response(r) + if not (self.global_pythonify or pythonify) or 'errors' in sharing_group_resp: + return sharing_group_resp s = MISPSharingGroup() - s.from_dict(**sharing_group) + s.from_dict(**sharing_group_resp) return s def add_sharing_group(self, sharing_group: MISPSharingGroup, pythonify: bool = False) -> Union[Dict, MISPSharingGroup]: