File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 33import json
44import webbrowser
55from pathlib import Path
6+ from configparser import ParsingError
67
78from databricks .labs .blueprint .cli import App
89from databricks .labs .blueprint .entrypoint import get_logger
@@ -34,7 +35,11 @@ def _get_workspace_contexts(
3435) -> list [WorkspaceContext ]:
3536 """Get workspace contexts to the workspaces for which the user has access"""
3637 if not a :
37- a = AccountClient (product = 'ucx' , product_version = __version__ )
38+ try :
39+ a = AccountClient (product = 'ucx' , product_version = __version__ )
40+ except ParsingError as e :
41+ logger .error ("Could not create account client" , exc_info = e )
42+ return []
3843 account_installer = AccountInstaller (a )
3944 workspace_contexts = account_installer .get_workspace_contexts (w , run_as_collection , ** named_parameters )
4045 return workspace_contexts
You can’t perform that action at this time.
0 commit comments