Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-23258: Add explicit check for existence of source catalog. #114

Merged
merged 2 commits into from Feb 1, 2020

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented Jan 31, 2020

No description provided.

@@ -282,6 +282,10 @@ def _loadAndMatchCatalogs(repo, dataIds, matchRadius,
srcVis = SourceCatalog(newSchema)

for vId in dataIds:
if not butler.datasetExists('src', vId):
print("Could not find source catalog for ", vId)
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest: print(f"Could not find source catalog for {vId}; skipping this dataId.")
... especially if this line could get printed out many times; I would personally find it annoying to have lots of mostly redundant "Skipping this dataId" messages cluttering the logs. If it's only a few then it's not a big deal.

@erykoff erykoff merged commit 12b746e into master Feb 1, 2020
@erykoff erykoff deleted the tickets/DM-23258 branch February 1, 2020 05:42
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.

None yet

2 participants