[FRPythoneers] Question about Try/Except

J. Wayde Allen wallen at lug.boulder.co.us
Mon Jun 3 15:16:04 MDT 2002


OK, just had a new twist on things.  I was using the following structure
in my cgi script:

   try:
      surname = form["last_name"].value
   except:
      Display("You must supply a first and last name.  Please go back.")
      raise SystemExit

which would display my message if no last_name was entered on the web
form.  However, when the script was transfered from my Linux box to the
HP-UX server this is no longer the case.  Now, I just get blank data
fields and no exception is raised.  Any ideas?

- Wayde
  (wallen at lug.boulder.co.us)




More information about the FRPythoneers mailing list