mirror of https://github.com/MISP/PyMISP
fix: Forgotten calls to master class.
parent
f3b8029bb3
commit
9c4e98f025
|
@ -78,6 +78,7 @@ def _datetime_to_timestamp(d):
|
|||
class MISPAttribute(AbstractMISP):
|
||||
|
||||
def __init__(self, describe_types=None):
|
||||
super(MISPAttribute, self).__init__()
|
||||
if not describe_types:
|
||||
ressources_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')
|
||||
with open(os.path.join(ressources_path, 'describeTypes.json'), 'r') as f:
|
||||
|
@ -284,6 +285,7 @@ class MISPAttribute(AbstractMISP):
|
|||
class MISPEvent(AbstractMISP):
|
||||
|
||||
def __init__(self, describe_types=None, strict_validation=False):
|
||||
super(MISPEvent, self).__init__()
|
||||
ressources_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')
|
||||
if strict_validation:
|
||||
with open(os.path.join(ressources_path, 'schema.json'), 'r') as f:
|
||||
|
|
Loading…
Reference in New Issue