File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/azure-cli/azure/cli/command_modules/containerapp Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3434from .containerapp_env_decorator import ContainerAppEnvDecorator , ContainerAppEnvCreateDecorator , ContainerAppEnvUpdateDecorator
3535from .containerapp_auth_decorator import ContainerAppAuthDecorator
3636from .containerapp_decorator import ContainerAppCreateDecorator , BaseContainerAppDecorator
37- from ._client_factory import handle_raw_exception , handle_non_resource_not_found_exception
37+ from ._client_factory import handle_raw_exception , handle_non_resource_not_found_exception , \
38+ handle_non_404_status_code_exception
3839from ._clients import (
3940 ManagedEnvironmentClient ,
4041 ContainerAppClient ,
@@ -369,8 +370,8 @@ def update_containerapp_logic(cmd,
369370 containerapp_def = None
370371 try :
371372 containerapp_def = ContainerAppClient .show (cmd = cmd , resource_group_name = resource_group_name , name = name )
372- except :
373- pass
373+ except Exception as e :
374+ handle_non_404_status_code_exception ( e )
374375
375376 if not containerapp_def :
376377 raise ResourceNotFoundError ("The containerapp '{}' does not exist" .format (name ))
You can’t perform that action at this time.
0 commit comments