diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-05-21 15:47:24 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-05-21 15:47:24 +0000 |
commit | 1b8679f1d35728ccb290419ed04fd1a5b2e72c28 (patch) | |
tree | f9a95445943515d3855ee9457dc3403f3f7b74a1 /doc/sphinxext/plot_directive.py | |
parent | bc79e936cbec385ba5222e8e2a87c819e4188d11 (diff) | |
download | numpy-1b8679f1d35728ccb290419ed04fd1a5b2e72c28.tar.gz |
sphinxext: fix python2.4 compatibility
Diffstat (limited to 'doc/sphinxext/plot_directive.py')
-rw-r--r-- | doc/sphinxext/plot_directive.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |