using exceptions

Locke locke at geek.com
Sun May 19 17:10:03 EDT 2002


I am trying to to some CGI using the poplib module. I want it to tell me if
the password is incorrect. What is the exception I should use?

   23     try:
   24         pop.pass_(password)
   25     except error_proto:
   26         print "Your password is incorrect."





More information about the Python-list mailing list