"nitin chandra" <nitinchand...@gmail.com> wrote
FileA = raw_input('Enter CSV file with lists of Files:')
try:
  fp6 = open(FileA,'r')
  except IOError:

##  I am getting the following error at this line:-
##
##    File "mer5Pr2.py", line 7
##    except IOError:
##            ^
##    SyntaxError: invalid syntax


The except needs to align with the try.


  try:
     #code here
  except:

HTH


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to