cubicweb #3648763 SystemExit not catched by rest_publish [validation pending]

docutils publisher may raise SystemExit. rest_publish function (ext/rest.py) has a:

try:
  pub = ...
  pub.publish(enable_exit_status=None)
  [...]
except Exception:
  LOGGER.exception('error while publishing ReST text')

which will not catch SystemExit.

prioritynormal
typebug
done in3.18.4
load0.100
load left0.000
closed by#6fd2651719bc [ext/rest] Catch SystemExit raised by docutils
patch[ext/rest] Catch SystemExit raised by docutils [applied]