Skip to content

Commit

Permalink
Handle new unknown site behavior in efdUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Oct 29, 2024
1 parent 04f6f94 commit d05a360
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/lsst/summit/utils/efdUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,9 @@ def makeEfdClient(testing: bool | None = False) -> EfdClient:
if testing:
return EfdClient("usdf_efd")

try:
site = getSite()
except ValueError as e:
raise RuntimeError("Could not create EFD client as the site could not be determined") from e
site = getSite()
if site == "UNKNOWN":
raise RuntimeError("Could not create EFD client as the site could not be determined")

if site == "summit":
return EfdClient("summit_efd")
Expand Down

0 comments on commit d05a360

Please sign in to comment.