fix: [mispevent] cannot type

pull/823/head
Alexandre Dulaunoy 2022-01-27 15:34:18 +01:00
parent 6e018a4582
commit 1efc735fb3
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ class MISPAttribute(AbstractMISP):
for v in self.value.split('|'):
try:
h = hashlib.new(algorithm)
except ValueError e:
except ValueError:
h = hashlib.new(algorithm, usedforsecurity=False)
h.update(v.encode("utf-8"))
hashes.append(h.hexdigest())