Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
from functools import total_ordering
from importlib import import_module

from knack.log import get_logger


logger = get_logger(__name__)


class APIVersionException(Exception):
def __init__(self, type_name, api_profile):
Expand Down Expand Up @@ -573,6 +578,8 @@ def _get_attr(sdk_path, mod_attr_path, checked=True):
op = getattr(op, part)
return op
except (ImportError, AttributeError) as ex:
import traceback
logger.debug(traceback.format_exc())
if checked:
return None
raise ex
Expand Down