fix: Forgotten calls to master class.

pull/160/head
Raphaël Vinot 2017-12-20 16:59:52 +01:00
parent f3b8029bb3
commit 9c4e98f025
1 changed files with 2 additions and 0 deletions

View File

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