title: Python: Multiple try except blocks in one?
body: <p>Is there a neat way to have multiply commands in the try block so that it basically tries every single line without stopping as soon as one command yields an error?</p>
  
  <p>Basically I want to replace this:</p>
  
  <pre><code>try:
     command1
  except:
     pass
  try:
     command2
  except:
     pass
  try:
     command3
  except:
     pass
  </code></pre>
  
  <p>with this:</p>
  
  <pre><code>try all lines:
    command1
    command2
    command3
  except:
    pass
  </code></pre>
  
  <p>Defining a list so I could loop through the commands seems to be a bad solution</p>