[EUPI] Fix expansion for empty EUPI response

Offer no enrichment instead of displaying an error message
pull/25/head
Rogdham 2016-06-08 17:52:11 +02:00
parent 2965433ffc
commit 3c69398551
1 changed files with 1 additions and 2 deletions

View File

@ -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):