diff --git a/examples/misp2clamav.py b/examples/misp2clamav.py index 84b3e85..1cd2df7 100755 --- a/examples/misp2clamav.py +++ b/examples/misp2clamav.py @@ -30,7 +30,7 @@ def find_hashes(htype): return for a in r['response']['Attribute']: attribute = MISPAttribute(mymisp.describe_types) - attribute.set_all_values(**a) + attribute.from_dict(**a) if '|' in attribute.type and '|' in attribute.value: c, value = attribute.value.split('|') comment = '{} - {}'.format(attribute.comment, c)