mirror of https://github.com/MISP/misp-modules
fix: Quick cleanup
parent
18bad54603
commit
d15cbe58fe
|
@ -1,4 +1,5 @@
|
||||||
import json, datetime, base64
|
import json
|
||||||
|
import base64
|
||||||
from pymisp import MISPEvent
|
from pymisp import MISPEvent
|
||||||
from collections import defaultdict, Counter
|
from collections import defaultdict, Counter
|
||||||
|
|
||||||
|
@ -67,7 +68,7 @@ class GoAmlGeneration(object):
|
||||||
try:
|
try:
|
||||||
report_code.append(obj.get_attributes_by_relation('report-code')[0].value.split(' ')[0])
|
report_code.append(obj.get_attributes_by_relation('report-code')[0].value.split(' ')[0])
|
||||||
currency_code.append(obj.get_attributes_by_relation('currency-code')[0].value)
|
currency_code.append(obj.get_attributes_by_relation('currency-code')[0].value)
|
||||||
except:
|
except IndexError:
|
||||||
print('report_code or currency_code error')
|
print('report_code or currency_code error')
|
||||||
self.uuids, self.report_codes, self.currency_codes = uuids, report_code, currency_code
|
self.uuids, self.report_codes, self.currency_codes = uuids, report_code, currency_code
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue