Skip to content

Commit

Permalink
Log traceback when problem getting KP meta KG #2231
Browse files Browse the repository at this point in the history
  • Loading branch information
amykglen committed Dec 22, 2023
1 parent f65e34f commit 52cb94d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/ARAX/ARAXQuery/Expand/kp_info_cacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pathlib
import pickle
import sys
import traceback
from datetime import datetime, timedelta
from typing import Set, Dict, Optional

Expand Down Expand Up @@ -184,7 +185,8 @@ def _build_meta_map(self, allowed_kps_dict: Dict[str, str]):
eprint(f" Timed out when trying to hit {kp_infores_curie}'s /meta_knowledge_graph endpoint "
f"(waited 10 seconds)")
except Exception:
eprint(f" Ran into a problem getting {kp_infores_curie}'s meta info")
tb = traceback.format_exc()
eprint(f" Ran into a problem getting {kp_infores_curie}'s meta info: {tb}")
else:
if kp_response.status_code == 200:
try:
Expand Down

0 comments on commit 52cb94d

Please sign in to comment.