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'
|
||||
return misperrors
|
||||
else:
|
||||
misperrors['error'] = 'Error in EUPI lookup'
|
||||
return misperrors
|
||||
return {'results': [{'types': mispattributes['output'], 'values': ''}]}
|
||||
|
||||
|
||||
def handle_hover(pyeupi, url):
|
||||
|
|
Loading…
Reference in New Issue