diff --git a/code/ARAX/ARAXQuery/Expand/smartapi.py b/code/ARAX/ARAXQuery/Expand/smartapi.py index afc5cd14f..1b5e54527 100644 --- a/code/ARAX/ARAXQuery/Expand/smartapi.py +++ b/code/ARAX/ARAXQuery/Expand/smartapi.py @@ -4,8 +4,11 @@ import requests_cache import json import re +import sys from functools import lru_cache +def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) + class SmartAPI: """SmartAPI.""" @@ -110,7 +113,7 @@ def get_trapi_endpoints(self, version=None, whitelist=None, blacklist=None): servers = [] if "servers" not in hit: - print(f"No 'servers' element found in {title}!") + eprint(f"No 'servers' element found in {title}!") continue for server in hit["servers"]: try: