checking multiple keys in a dictionary is not working. python
<p>I am writing an if statement to determine if my dictionary has multiple keys. If not i just want to pass. I thought if the code below did not find 'redshift' as a key it would pass. However when i run it redshift is not a key and it does not pass. I get a Key error. What is the problem. As long as it finds 'redshift' or 'host' it is not passing.</p>

<pre><code>        print config[name].keys() 
        if ("redshift" and "host") in config[name]: 
            print config[name].keys() 
            name.append(config[name]["name"])
            redshift.append(config[name]["redshift"][0]['value'])
            type.append(config[name]["type"][0]["value"])
         else:
            pass
</code></pre>