File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
azure-devops/azext_devops/dev/common Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 12
12
def azure_devops_exception_handler (ex ):
13
13
# we are taking dependency on string here because taking dependency on
14
14
# Azure DevOps Client will increase load time for every command
15
- if type (ex ).__name__ == 'AzureDevOpsServiceError' :
15
+ exceptionTypeName = type (ex ).__name__
16
+ if exceptionTypeName == 'AzureDevOpsServiceError' :
16
17
logger .debug ('handling vsts service error' )
17
18
raise CLIError (ex )
18
19
19
- if type (ex ).__name__ == 'ValueError' :
20
+ if exceptionTypeName == 'AzureDevOpsAuthenticationError' :
21
+ logger .debug ('handling vsts auth error' )
22
+ raise CLIError (ex )
23
+
24
+ if exceptionTypeName == 'ValueError' :
20
25
logger .debug ('handling value error' )
21
26
raise CLIError (ex )
22
27
You can’t perform that action at this time.
0 commit comments