title: Problem with 'try.....except' throws an Syntax error for ROOT files
body: <p>I am trying to find corrupted root files in a dir. Basically, my code throws and SyntaxError: invalid syntax when trying the following</p>
  
  <pre><code>import ROOT as root
  import sys
  import glob
  
  
  dir=sys.argv[1]
  txtfiles = []
  for file in glob.glob(dir+"/*.root"):
      f = root.TFile(file,'r')
      try :
          myTree = f.Get("AC1B")
  
          except IOError:
              print 'this is not good',f
              continue
          else :
              print 'the filename is ',file, myTree.GetEntries()
  </code></pre>
  
  <p>I ve tried also just except: but this also does not work.</p>