From 7178d3a8a04e5de74e60fbb96c9c670ca527a0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 15 May 2020 11:44:13 +0200 Subject: [PATCH] fix: settings is not required in MISPFeed --- pymisp/mispevent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymisp/mispevent.py b/pymisp/mispevent.py index 15088f0..cdbedfb 100644 --- a/pymisp/mispevent.py +++ b/pymisp/mispevent.py @@ -1505,7 +1505,8 @@ class MISPFeed(AbstractMISP): if 'Feed' in kwargs: kwargs = kwargs['Feed'] super().from_dict(**kwargs) - self.settings = json.loads(self.settings) + if hasattr(self, 'settings'): + self.settings = json.loads(self.settings) class MISPWarninglist(AbstractMISP):