From: D-Man <ds...@ri...> - 2001-02-23 22:32:49
|
On Fri, Feb 23, 2001 at 01:44:16PM -0800, John Mudd wrote: | Just add the following at the top of yout Jython script to fix the | problem! | | from java.lang import Exception | I wouldn't recommend this since its name clashes with Python's builtin Exception. Instead I would use : try : pass except java.lang.Exception , error : pass or from java.lang import Exception as JavaException try : pass except JavaException , error : pass -D |