mirror of https://github.com/MISP/misp-modules
fix: Quick cleanup
parent
d15cbe58fe
commit
35f3a5e43f
|
@ -96,13 +96,12 @@ def handler(q=False):
|
||||||
txt = resolver.query(query,'TXT')
|
txt = resolver.query(query,'TXT')
|
||||||
listed.append(query)
|
listed.append(query)
|
||||||
info.append(str(txt[0]))
|
info.append(str(txt[0]))
|
||||||
except:
|
except Exception:
|
||||||
continue
|
continue
|
||||||
result = {}
|
result = {}
|
||||||
for l, i in zip(listed, info):
|
for l, i in zip(listed, info):
|
||||||
result[l] = i
|
result[l] = i
|
||||||
r = {'results': [{'types': mispattributes.get('output'), 'values': json.dumps(result)}]}
|
return {'results': [{'types': mispattributes.get('output'), 'values': json.dumps(result)}]}
|
||||||
return r
|
|
||||||
|
|
||||||
def introspection():
|
def introspection():
|
||||||
return mispattributes
|
return mispattributes
|
||||||
|
|
Loading…
Reference in New Issue