Skip to content

Commit

Permalink
Removed accidental breakpoints, closes #49
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 27, 2024
1 parent 67708b6 commit adbfaeb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions datasette_enrichments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,16 @@ def __repr__(self):

async def get_secret(self, datasette: "Datasette", config: dict):
if self.secret is None:
breakpoint()
raise SecretError("No secret defined for this enrichment")
secret = await get_secret(datasette, self.secret.name)
if secret is not None:
return secret
# Try the stashed secrets instead
if not hasattr(datasette, "_enrichments_stashed_secrets"):
breakpoint()
raise SecretError("No secrets have been stashed")
stashed_keys = datasette._enrichments_stashed_secrets
stash_key = config.get("enrichment_secret")
if stash_key not in stashed_keys:
breakpoint()
raise SecretError(
"No secret found in stash for {}".format(self.secret.name)
)
Expand Down

0 comments on commit adbfaeb

Please sign in to comment.