[Tutor] my own error code when no argument is sent

Bryan Fodness bryan.fodness at gmail.com
Tue Jun 17 04:47:54 CEST 2008


when i execute my program without an argument i receive,


infile = sys.argv[1]

IndexError: list index out of range
is there a way that i could suppress this and add my own error code
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080616/78b2c627/attachment.htm>


More information about the Tutor mailing list