From 06eb92f91224596833abe897cf83894ec9d2f006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 26 May 2020 11:36:53 +0200 Subject: [PATCH] fix: Deleted is not always required in the feed export --- pymisp/abstract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/abstract.py b/pymisp/abstract.py index 2406bb2..057dd4b 100644 --- a/pymisp/abstract.py +++ b/pymisp/abstract.py @@ -225,7 +225,7 @@ class AbstractMISP(MutableMapping, MISPFileCache, metaclass=ABCMeta): else: to_return[field] = getattr(self, field) else: - if field in ['data', 'first_seen', 'last_seen']: + if field in ['data', 'first_seen', 'last_seen', 'deleted']: # special fields continue raise PyMISPError('The field {} is required in {} when generating a feed.'.format(field, self.__class__.__name__))