[Tutor] Exceptions for checking root, files
Jonas Melian
jonasmg at softhome.net
Sat May 21 14:38:57 CEST 2005
Hi,
I never haven't worked with exceptions, and I'm a little confused.
In my programs I always build a function to check things as:
- The user that runned the script is root
- All the files and directories with whom I am going to work exist
- etc
else the program exits.
Does this checks can be runned from an exception?
P.S.: I did read http://www.python.org/doc/current/tut/node10.html
More information about the Tutor
mailing list