Skip to content

Commit

Permalink
https://github.com/TranslatorSRI/NameResolution/issues/129
Browse files Browse the repository at this point in the history
  • Loading branch information
YaphetKG committed Dec 20, 2023
1 parent 3f4e334 commit 227ad4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dug/core/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ def make_request(self, curie: str, http_session: Session):
return response.json()
except json.decoder.JSONDecodeError as e:
logger.error(f"Json parse error for response from `{url}`. Exception: {str(e)}")
return {curie: {"names": []}}
except requests.exceptions.ConnectionError as e:
logger.error(f'connection reset')
return {curie: {"names": []}}

def handle_response(self, curie: str, raw_synonyms: List[dict]) -> List[str]:
# Return curie synonyms
Expand Down

0 comments on commit 227ad4a

Please sign in to comment.