Skip to content

Commit

Permalink
Pass in pyvo auth as a keyword arg in class initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Jan 23, 2025
1 parent c16b43b commit 191d42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lsst/rsp/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_tap_service(*args: str) -> pyvo.dal.TAPService:
# 81a50d7fd24428f17104a075bc0e1ac661ed6ea0/pyvo/utils/xml/elements.py#L418
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
return pyvo.dal.TAPService(tap_url, get_pyvo_auth())
return pyvo.dal.TAPService(tap_url, session=get_pyvo_auth())


def retrieve_query(query_url: str) -> pyvo.dal.AsyncTAPJob:
Expand All @@ -65,4 +65,4 @@ def retrieve_query(query_url: str) -> pyvo.dal.AsyncTAPJob:
# 81a50d7fd24428f17104a075bc0e1ac661ed6ea0/pyvo/utils/xml/elements.py#L418
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
return pyvo.dal.AsyncTAPJob(query_url, get_pyvo_auth())
return pyvo.dal.AsyncTAPJob(query_url, session=get_pyvo_auth())

0 comments on commit 191d42f

Please sign in to comment.