title: how to break this loop correctly
body: <p>I'm a little lost on how to correct the below problem.
  When the xxxx counter reaches 15, I want the script to stop, which works fine.
  However, when there's an error in one of the try statements, I only want it to go to the next url in oldlist, not stop the script like it does right now.</p>
  
  <p>I read the docs about this and the possible better inclusion of a While statement, but i'm not sure what to do here to make it work like I want it to. It's actually a lot bigger loop, but just simplified below.</p>
  
  <p>system: IDLE on Python 2.7.* x64</p>
  
  <pre><code>xxxx = 0
  oldlist = [lost of stuff]
  newlist = [lots of stuff]
  otherlist = [lots of stuff]
  
  for url in oldlist:
      found = False
  
      if xxxx == 15:
          break
  
      for item in newlist:
          if something:
              if something:
                  found = True
  
      for items in otherlist:
          if something:
              found = False
  
      if found == True:
          xxxx +=1
  
          try:
              something
          except Exception as thing: #catch em all
              print "1st Error"
              break    #should go to the next url
  
          try:
              something
          except Exception as morethings: #catch em all
              print "2nd Error"
              break    #should go to the next url
  </code></pre>
  
  <p>Is this actually bad python?
  Should it be more like:</p>
  
  <pre><code>while xxxx != 15:
      for url in oldlist:
          found = False
  
          for item in newlist:
              if something:
                  if something:
                      found = True
  
          for items in otherlist:
              if something:
                  found = False
  
          while found == True:
              xxxx +=1
  
          while True:
              try:
                  something
              except Exception as thing: #catch em all
                  print "1st Error"
                  break
  
              try:
                  something
              except Exception as morethings: #catch em all
                  print "2nd Error"
                  break
  </code></pre>