From 1b8679f1d35728ccb290419ed04fd1a5b2e72c28 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Thu, 21 May 2009 15:47:24 +0000 Subject: sphinxext: fix python2.4 compatibility --- doc/sphinxext/plot_directive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/sphinxext') diff --git a/doc/sphinxext/plot_directive.py b/doc/sphinxext/plot_directive.py index 7b561c8fa..f564cd670 100644 --- a/doc/sphinxext/plot_directive.py +++ b/doc/sphinxext/plot_directive.py @@ -406,7 +406,7 @@ def run_code(code, code_path): ns = {} exec setup.config.plot_pre_code in ns exec code in ns - except exceptions.BaseException, err: + except (Exception, SystemExit), err: raise PlotError(traceback.format_exc()) finally: os.chdir(pwd) -- cgit v1.2.1