Author ezio.melotti
Recipients cate, ezio.melotti, georg.brandl, jszakmeister
Date 2009-06-06.11:30:55
SpamBayes Score 0.000527948
Marked as misclassified No
Message-id <>
If we use the bare "except:" the message "could not open file!" is shown
and we would waste time trying to figure out why it can't be opened.

Instead, if we use "except IOError:", the first time we run the program
the error "NameError: name 'opne' is not defined" is raised, telling us
what's wrong. Once we know it, we can change 'opne' to 'open' and solve
the problem.

Indeed it could be clearer.
Date User Action Args
2009-06-06 11:30:57ezio.melottisetrecipients: + ezio.melotti, georg.brandl, jszakmeister, cate
2009-06-06 11:30:57ezio.melottisetmessageid: <>
2009-06-06 11:30:56ezio.melottilinkissue6220 messages
2009-06-06 11:30:56ezio.melotticreate