Skip to content

Commit

Permalink
Make CollectionID or OrganizationID required (Skyvern-AI#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Oct 24, 2024
1 parent 4d87b83 commit 3eba6d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skyvern/forge/sdk/services/bitwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ async def _get_secret_value_from_url(
elif collection_id:
LOG.info("Collection ID is provided, filtering items by collection ID", collection_id=collection_id)
list_command.extend(["--collectionid", collection_id])
else:
LOG.error("No collection ID or organization ID provided -- this is required")
raise BitwardenListItemsError("No collection ID or organization ID provided -- this is required")
items_result = BitwardenService.run_command(list_command)

if items_result.stderr and "Event post failed" not in items_result.stderr:
Expand Down

0 comments on commit 3eba6d7

Please sign in to comment.