summary refs log tree commit diff stats
path: root/tests/qapi-schema/test-qapi.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-10-25 11:21:59 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-11-13 10:36:51 +0100
commitc375f05ef5a358f1dd19b45bb348100de0f97c9d (patch)
treee8e7ccc3b627c5349b2fcc54da63aace8ca62290 /tests/qapi-schema/test-qapi.py
parent6d133eef98bed96ea11c73ad3cd15f21815da993 (diff)
downloadfocaccia-qemu-c375f05ef5a358f1dd19b45bb348100de0f97c9d.tar.gz
focaccia-qemu-c375f05ef5a358f1dd19b45bb348100de0f97c9d.zip
sphinx/qapidoc: Tidy up pylint warning raise-missing-from
Pylint advises:

    docs/sphinx/qapidoc.py:518:12: W0707: Consider explicitly re-raising using 'raise ExtensionError(str(err)) from err' (raise-missing-from)

>From its manual:

    Python's exception chaining shows the traceback of the current
    exception, but also of the original exception.  When you raise a
    new exception after another exception was caught it's likely that
    the second exception is a friendly re-wrapping of the first
    exception.  In such cases `raise from` provides a better link
    between the two tracebacks in the final error.

Makes sense, so do it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20231025092159.1782638-2-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/qapi-schema/test-qapi.py')
0 files changed, 0 insertions, 0 deletions