We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 519df0e commit 21c4a9aCopy full SHA for 21c4a9a
azure-devops/azext_devops/dev/common/exception_handler.py
@@ -12,11 +12,16 @@
12
def azure_devops_exception_handler(ex):
13
# we are taking dependency on string here because taking dependency on
14
# Azure DevOps Client will increase load time for every command
15
- if type(ex).__name__ == 'AzureDevOpsServiceError':
+ exceptionTypeName = type(ex).__name__
16
+ if exceptionTypeName == 'AzureDevOpsServiceError':
17
logger.debug('handling vsts service error')
18
raise CLIError(ex)
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':
25
logger.debug('handling value error')
26
27
0 commit comments