Skip to content

DM-44304: Add consdbClient.#104

Merged
ktlim merged 1 commit intomainfrom
tickets/DM-44304
May 14, 2024
Merged

DM-44304: Add consdbClient.#104
ktlim merged 1 commit intomainfrom
tickets/DM-44304

Conversation

@ktlim
Copy link
Copy Markdown
Collaborator

@ktlim ktlim commented May 13, 2024

No description provided.

@ktlim ktlim force-pushed the tickets/DM-44304 branch 2 times, most recently from 0bf59cb to 5c33e81 Compare May 14, 2024 00:23
self.url = os.environ["LSST_CONSDB_PQ_URL"]
else:
self.url = url
self.url = self.url.rstrip("/")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that LSST_CONSDB_PQ_URL could not be set at all, maybe a check inside the init to ensure we didn't end up with nothing, only to fail later on use? Oh, except you're using os.environ rather than getenv(), so I guess that throws a KeyError actually, which is going to be less user-friendly, but certainly does the trick.

@ktlim ktlim force-pushed the tickets/DM-44304 branch from 5c33e81 to 02f40a5 Compare May 14, 2024 14:31
@ktlim ktlim force-pushed the tickets/DM-44304 branch from 02f40a5 to 57f79ab Compare May 14, 2024 14:36
@ktlim ktlim merged commit 380f6eb into main May 14, 2024
@ktlim ktlim deleted the tickets/DM-44304 branch May 14, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants