diff options
-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) |