Skip to content
Prev Previous commit
Next Next commit
Fix after review: use base class HttpResponseError
  • Loading branch information
hodd committed Mar 23, 2021
commit 3239dc58d563ccb1692151ec79923328085c1e48
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

from knack.util import CLIError
from msrest.exceptions import ValidationError # pylint: disable=import-error
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError
from azure.core.exceptions import HttpResponseError


def netappfiles_exception_handler(ex):
if isinstance(ex, (ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError,
if isinstance(ex, (HttpResponseError,
ValidationError, ValueError)):
message = ex
raise CLIError(message)
Expand Down