fix: settings is not required in MISPFeed

pull/582/head
Raphaël Vinot 2020-05-15 11:44:13 +02:00
parent d7beed9f76
commit 7178d3a8a0
1 changed files with 2 additions and 1 deletions

View File

@ -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):