I\'m trying to read all files from a folder that matches a certain criteria. My program crashes once I have an exception raised. I am trying to continue even if there\'s an exc
You're code is doing exactly what you're telling it to do. When you get an exception, it jumps down to this section:
except: print "error "+str(IOError) pass
Since there's nothing after that, the program ends.
Also, that pass is superfluous.
pass