We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b2f70 commit 2734224Copy full SHA for 2734224
pymisp/tools/csvloader.py
@@ -38,6 +38,8 @@ def load(self):
38
else:
39
# Check if the CSV file has a header, and if it matches with the object template
40
tmp_object = MISPObject(self.template_name)
41
+ if not tmp_object._definition['attributes']:
42
+ raise Exception(f'Unable to find the object template ({self.template_name}), impossible to create objects.')
43
allowed_fieldnames = list(tmp_object._definition['attributes'].keys())
44
for fieldname in self.fieldnames:
45
if fieldname not in allowed_fieldnames:
0 commit comments