Markus Armbruster c375f05ef5 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>
2023-11-13 10:36:51 +01:00
..
2023-11-07 09:41:52 +08:00
2023-11-02 13:36:45 +00:00
2023-11-07 18:59:41 +08:00
2023-05-30 15:50:17 +01:00
2016-05-26 11:12:05 -06:00
2021-11-19 10:16:58 +01:00
2016-03-11 16:59:12 +02:00
2020-09-01 09:31:33 +02:00