Skip to content

Commit

Permalink
Placeholder exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mccoyp committed Mar 10, 2021
1 parent 92c46c2 commit 17cdbce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sdk/core/azure-common/azure/common/client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,15 @@ def get_client_from_json_dict(client_class, config_dict, **kwargs):
)

parameters.update(kwargs)
return _instantiate_client(client_class, **parameters)
try:
return _instantiate_client(client_class, **parameters)
except TypeError as ex:
docs_url = "aka.ms/{route}" #TODO: provide real link to migration guide
raise TypeError(
"{} does not support initialization with azure-common factory methods. See {} for more details.".format(
client_class.__name__, docs_url
)
) from ex

def get_client_from_auth_file(client_class, auth_path=None, **kwargs):
"""Return a SDK client initialized with auth file.
Expand Down

0 comments on commit 17cdbce

Please sign in to comment.