How can I import the boto3 ssm ParameterNotFound exception? How can I import the boto3 ssm ParameterNotFound exception? python python

How can I import the boto3 ssm ParameterNotFound exception?


mc = boto3.client('ssm')try:  ...except mc.exceptions.ParameterNotFound:  ...


From Botocore Error Handling

import boto3from botocore.exceptions import ClientErrorssm = boto3.client('ssm')try:    ssm.get_parameter(Name='not_found')except ClientError as e:    print(e.response['Error']['Code'])