Skip to content

Commit 146e874

Browse files
committed
exception printing
1 parent 78adee2 commit 146e874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/get_keys.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ async def get_secret_list_with_elevation(
342342
await asyncio.sleep(5)
343343

344344
return client.get_secrets(vault_name)
345-
except Exception:
345+
except Exception as e:
346346
print(
347347
colored(
348-
"Elevation to key vault admin failed...attempting to get secrets as key vault reader.",
348+
f"Elevation to key vault admin failed...attempting to get secrets as key vault reader.\n{repr(e)}",
349349
Fore.YELLOW,
350350
)
351351
)
@@ -367,10 +367,10 @@ async def get_secret_list_with_elevation(
367367
print(colored("Elevation successful.", Fore.GREEN))
368368
print(colored("Waiting 5 seconds...", Fore.YELLOW))
369369
await asyncio.sleep(5)
370-
except Exception:
370+
except Exception as e:
371371
print(
372372
colored(
373-
"Elevation failed...attempting to get secrets without elevation.",
373+
f"Elevation failed...attempting to get secrets without elevation.\n{repr(e)}",
374374
Fore.YELLOW,
375375
)
376376
)

0 commit comments

Comments
 (0)