title: One liner for handling dictionary KeyError
body: <p>I am new to Python and still learning the tricks.</p>
  
  <p>How can i convert the following code to a single liner, is it possible in Python? There has to be a neat way of doing this.</p>
  
  <pre><code>try:
      image_file = self.request.files['image_path']
  except:
      image_file = None
  </code></pre>