mirror of https://github.com/MISP/PyMISP
fix: Deleted is not always required in the feed export
parent
526321c8b4
commit
06eb92f912
|
@ -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__))
|
||||
|
|
Loading…
Reference in New Issue