I am trying to use the fileinput.input() module to read in the lines from a bunch of files in a directory and occasionally receive an IOerror exception. What is the best way to handle this exception so that if 1 of the items in the list i'm feeding fileinput,input() generates this IOError, i can get fileinput to simply continue onto the next item in the list ?
Skrell 0 Light Poster
snippsat 661 Master Poster
Skrell 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
Skrell 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
Skrell 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
Skrell 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.