title: botocore.errorfactory.DBInstanceNotFoundFault in boto3
body: <p>How to catch this boto error <code>botocore.errorfactory.DBInstanceNotFoundFault</code></p>
  <p>This is my python3 code :</p>
  <pre><code>import boto3
  import botocore.exceptions
  import botocore.errorfactory
  
  clientrds = boto3.client('rds')
  
  rdsInstances = ['prod-rds']
  
  
  for rds in rdsInstances : 
      rds_response = clientrds.describe_db_instances(DBInstanceIdentifier=rds)
      DBInstanceStatus = (rds_response[&quot;DBInstances&quot;][0][&quot;DBInstanceStatus&quot;])
      if DBInstanceStatus == &quot;stopped&quot; :
          print(rds,&quot; Switched On &quot;)
      start_rds_response = clientrds.start_db_instance(DBInstanceIdentifier=rds)
  </code></pre>
  <p>console output / Error :</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/rds.py&quot;, line 11, in &lt;module&gt;
      rds_response = clientrds.describe_db_instances(DBInstanceIdentifier=rds)
    File &quot;/home/.local/lib/python3.8/site-packages/botocore/client.py&quot;, line 391, in _api_call
      return self._make_api_call(operation_name, kwargs)
    File &quot;/home/.local/lib/python3.8/site-packages/botocore/client.py&quot;, line 719, in _make_api_call
      raise error_class(parsed_response, operation_name)
  botocore.errorfactory.DBInstanceNotFoundFault: An error occurred (DBInstanceNotFound) when calling the DescribeDBInstances operation: DBInstance prod-rds not found.
  </code></pre>