skip stderr parsing when list bitwarden items (#4090)
This commit is contained in:
@@ -317,9 +317,6 @@ class BitwardenService:
|
|||||||
raise BitwardenListItemsError("No collection ID or organization ID provided -- this is required")
|
raise BitwardenListItemsError("No collection ID or organization ID provided -- this is required")
|
||||||
items_result = await BitwardenService.run_command(list_command, timeout=timeout)
|
items_result = await BitwardenService.run_command(list_command, timeout=timeout)
|
||||||
|
|
||||||
if items_result.stderr and "Event post failed" not in items_result.stderr:
|
|
||||||
raise BitwardenListItemsError(items_result.stderr)
|
|
||||||
|
|
||||||
# Parse the items and extract credentials
|
# Parse the items and extract credentials
|
||||||
try:
|
try:
|
||||||
items = json.loads(items_result.stdout)
|
items = json.loads(items_result.stdout)
|
||||||
|
|||||||
Reference in New Issue
Block a user