Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Feb 5, 2025
1 parent ebca818 commit d3854f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mobu/models/business/sia.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .base import BusinessData, BusinessOptions

__all__ = ["SIABusinessData", "SIABusinessOptions", "SIA2SearchParameters"]
__all__ = ["SIA2SearchParameters", "SIABusinessData", "SIABusinessOptions"]


class SIA2SearchParameters(BaseModel):
Expand Down
10 changes: 6 additions & 4 deletions src/mobu/services/business/sia.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from ...events import Events, SIAQuery
from ...exceptions import SIAClientError
from ...models.business.sia import (
SIA2SearchParameters,
SIABusinessData,
SIABusinessOptions,
SIA2SearchParameters,
)
from ...models.user import AuthenticatedUser
from ...sentry import capturing_start_span, start_transaction
Expand Down Expand Up @@ -146,12 +146,14 @@ def _make_client(self, token: str) -> pyvo.dal.SIA2Service:
pyvo.dal.SIA2Service
SIA2Service client object.
"""
with ((capturing_start_span(op="make_client"))):
with capturing_start_span(op="make_client"):
config = config_dependency.config
if not config.environment_url:
raise RuntimeError("environment_url not set")
sia_url = (f"{str(config.environment_url).rstrip('/')}/api/sia/"
f"{self.query_set}")
sia_url = (
f"{str(config.environment_url).rstrip('/')}/api/sia/"
f"{self.query_set}"
)

try:
s = requests.Session()
Expand Down

0 comments on commit d3854f4

Please sign in to comment.