Skip to content

Commit deb3bd9

Browse files
Robbie1977claude
andcommitted
fix: increase API timeout to 9000s for slow-responding terms
Some terms take a very long time to return from the API — better to wait for a response than to timeout and retry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4889e7e commit deb3bd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vfbterms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create_session():
5757
def fetch_term_info(term_id):
5858
"""Fetch term info from VFBquery API. Returns dict or None on error."""
5959
try:
60-
resp = session.get(API_BASE, params={"id": term_id}, timeout=120)
60+
resp = session.get(API_BASE, params={"id": term_id}, timeout=9000)
6161
resp.raise_for_status()
6262
data = resp.json()
6363
if not data or not data.get("Id"):

0 commit comments

Comments
 (0)