From: Finn B. <bc...@us...> - 2000-12-04 21:19:02
|
Update of /cvsroot/jython/jython/org/python/util In directory slayer.i.sourceforge.net:/tmp/cvs-serv20313 Modified Files: InteractiveInterpreter.java Log Message: runsource(): Added graceful handling of the ValueError and OverflowError that can be raised during compilation. Index: InteractiveInterpreter.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/util/InteractiveInterpreter.java,v retrieving revision 2.2 retrieving revision 2.3 diff -C2 -r2.2 -r2.3 *** InteractiveInterpreter.java 1999/05/17 19:55:38 2.2 --- InteractiveInterpreter.java 2000/12/04 21:18:59 2.3 *************** *** 53,56 **** --- 53,61 ---- showexception(exc); return false; + } else if (Py.matchException(exc, Py.ValueError) || + Py.matchException(exc, Py.OverflowError)) { + // Should not print the stack trace, just the error. + showexception(exc); + return false; } else { throw exc; |