~cjwatson/lazr.restful/py3-html-escape

Viewing all changes in revision 264.1.1.

  • Committer: Colin Watson
  • Date: 2020-09-04 10:21:08 UTC
  • mto: This revision was merged to the branch mainline in revision 265.
  • Revision ID: cjwatson@canonical.com-20200904102108-2gq91lkcvw80wy9w
Fix exception re-raising on Python 3.

ReadWriteResource.__call__ takes some care to re-raise exceptions in such a
way as to preserve the original traceback, but to do this correctly on
Python 3 we need to use "raise ... from".  This fixes a test failure in
ErrorsTestCase.test_non_web_service_exception_includes_original_traceback.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: