title: Trapping an error in python
body: <p>I am trying to trap error and let the code finish running. 
  In the code below,  I "do Something." if fails, I want to print Error Msg 
  and continue running the second half.  </p>
  
  <p>What is happening is When an error occurs with the first section, The error statement print and 
  stops running. I would like the code to keep running past the first section.  </p>
  
  <pre><code>  if len(rows) &gt; 0:
              try:                
                  print "Do something"       
              except:
                  print time.strftime("%H:%M:%S")  
  
              try:
                  print "Do somethings else"
              except:
                  print time.strftime("%H:%M:%S")  
  </code></pre>