diff --git a/IPython/Release.py b/IPython/Release.py index 5b0c0fe..2ca2f2f 100644 --- a/IPython/Release.py +++ b/IPython/Release.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Release data for the IPython project. -$Id: Release.py 988 2006-01-02 21:21:47Z fperez $""" +$Id: Release.py 992 2006-01-04 18:35:40Z fperez $""" #***************************************************************************** # Copyright (C) 2001-2005 Fernando Perez @@ -22,9 +22,9 @@ name = 'ipython' # because bdist_rpm does not accept dashes (an RPM) convention, and # bdist_deb does not accept underscores (a Debian convention). -version = '0.7.0.rc7' +version = '0.7.0.rc8' -revision = '$Revision: 988 $' +revision = '$Revision: 992 $' description = "An enhanced interactive Python shell." diff --git a/IPython/ultraTB.py b/IPython/ultraTB.py index c24829c..fff5757 100644 --- a/IPython/ultraTB.py +++ b/IPython/ultraTB.py @@ -60,7 +60,7 @@ You can implement other color schemes easily, the syntax is fairly self-explanatory. Please send back new schemes you develop to the author for possible inclusion in future releases. -$Id: ultraTB.py 988 2006-01-02 21:21:47Z fperez $""" +$Id: ultraTB.py 992 2006-01-04 18:35:40Z fperez $""" #***************************************************************************** # Copyright (C) 2001 Nathaniel Gray @@ -121,9 +121,12 @@ def _fixed_getinnerframes(etb, context=1,tb_offset=0): # otherwise produce 5 blank lines printed out (there is no file at the # console) rec_check = records[tb_offset:] - rname = rec_check[0][1] - if rname == '' or rname.endswith(''): - return rec_check + try: + rname = rec_check[0][1] + if rname == '' or rname.endswith(''): + return rec_check + except IndexError: + pass aux = traceback.extract_tb(etb) assert len(records) == len(aux)