fix: Deleted is not always required in the feed export

pull/591/head
Raphaël Vinot 2020-05-26 11:36:53 +02:00
parent 526321c8b4
commit 06eb92f912
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class AbstractMISP(MutableMapping, MISPFileCache, metaclass=ABCMeta):
else: else:
to_return[field] = getattr(self, field) to_return[field] = getattr(self, field)
else: else:
if field in ['data', 'first_seen', 'last_seen']: if field in ['data', 'first_seen', 'last_seen', 'deleted']:
# special fields # special fields
continue continue
raise PyMISPError('The field {} is required in {} when generating a feed.'.format(field, self.__class__.__name__)) raise PyMISPError('The field {} is required in {} when generating a feed.'.format(field, self.__class__.__name__))