From 11d7ede2a27e8087470d3ca92c2f627f4d251330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 17 Oct 2019 10:53:07 +0200 Subject: [PATCH] fix: remote_describe_types response was invalid --- pymisp/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymisp/api.py b/pymisp/api.py index 419aa6b..fb0f394 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -144,6 +144,7 @@ class PyMISP(object): # pragma: no cover if remote_describe_types.get('error'): for e in remote_describe_types.get('error'): raise PyMISPError('Failed: {}'.format(e)) + remote_describe_types = remote_describe_types['result'] if not remote_describe_types.get('sane_defaults'): raise PyMISPError('The MISP server your are trying to reach is outdated (<2.4.52). Please use PyMISP v2.4.51.1 (pip install -I PyMISP==v2.4.51.1) and/or contact your administrator.') return remote_describe_types