File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments