Skip to content

Commit 29f1348

Browse files
authored
fixing the test failure (#1488)
1 parent 82336ab commit 29f1348

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure-devops/azext_devops/dev/boards/boards_helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ def resolve_classification_node_path(client, path, project, structure_group):
2323

2424
def handle_common_boards_errors(ex):
2525
logger.debug(ex, exc_info=True)
26-
raise CLIError(str(ex.message) + "\nPlease see https://aka.ms/azure-devops-cli-troubleshooting " +
26+
# Handle both Python 2 and 3 exception message formats
27+
error_msg = getattr(ex, 'message', str(ex))
28+
raise CLIError(error_msg + "\nPlease see https://aka.ms/azure-devops-cli-troubleshooting " +
2729
'for more information on troubleshooting common errors.')

0 commit comments

Comments
 (0)