How can I import the boto3 ssm ParameterNotFound exception?
mc = boto3.client('ssm')try: ...except mc.exceptions.ParameterNotFound: ...
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'])