mirror of https://github.com/MISP/misp-modules
[EUPI] Fix expansion for empty EUPI response
Offer no enrichment instead of displaying an error messagepull/25/head
parent
2965433ffc
commit
3c69398551
|
@ -53,8 +53,7 @@ def handle_expansion(pyeupi, url):
|
||||||
misperrors['error'] = 'Unknown in the EUPI service'
|
misperrors['error'] = 'Unknown in the EUPI service'
|
||||||
return misperrors
|
return misperrors
|
||||||
else:
|
else:
|
||||||
misperrors['error'] = 'Error in EUPI lookup'
|
return {'results': [{'types': mispattributes['output'], 'values': ''}]}
|
||||||
return misperrors
|
|
||||||
|
|
||||||
|
|
||||||
def handle_hover(pyeupi, url):
|
def handle_hover(pyeupi, url):
|
||||||
|
|
Loading…
Reference in New Issue