title: Python - Flatting Dictionary where some keys are 'missing'
body: <p>Is there a cleaner way to do this?  I am checking a nested dictionary for a specific key and assigning that to a variable.    I will be using it to make a mysql insert shortly.  </p>
  
  <p><strong>My main issue is that if the key is not present (which sometimes happens) I dont want the code to fail, I just want to sent the variable to empty.</strong> </p>
  
  <p>This code seems to work but I have to do something similar to about 20 differnt key values so I would like to make sure I am doing it the best way</p>
  
  <pre><code>if 'Model' in  ItemAttributes:
      Model=ItemAttributes['Model']['value']
  else:
      Model=''
  </code></pre>