# HG changeset patch # User Denis Laxalde # Date 1394721202 -3600 # Node ID 6fd2651719bcf002f018ac1bb799b5e672560920 # Parent 5b8bc486d0dc4da89f6892683ed611aabc00f320 [ext/rest] Catch SystemExit raised by docutils docutils publisher may raise SystemExit which is not caught by Exception. Closes #3648763. diff -r 5b8bc486d0dc -r 6fd2651719bc ext/rest.py --- a/ext/rest.py Fri Mar 14 15:19:31 2014 +0100 +++ b/ext/rest.py Thu Mar 13 15:33:22 2014 +0100 @@ -437,7 +437,7 @@ # necessary for proper garbage collection, else a ref is kept somewhere in docutils... del pub.settings.context return res - except Exception: + except BaseException: LOGGER.exception('error while publishing ReST text') if not isinstance(data, unicode): data = unicode(data, encoding, 'replace')