Re: [PATCH 1/1] sphinx/qapidoc: Tidy up pylint warning raise-missing-from

2023-11-03 Thread Peter Maydell
On Fri, 3 Nov 2023 at 16:02, Markus Armbruster wrote: > > Peter Maydell writes: > > > On Fri, 3 Nov 2023 at 03:08, John Snow wrote: > >> > >> On Wed, Oct 25, 2023 at 6:10 AM Markus Armbruster > >> wrote: > >> > > >> > Pylint advises: > >> > > >> > docs/sphinx/qapidoc.py:518:12: W0707: Cons

Re: [PATCH 1/1] sphinx/qapidoc: Tidy up pylint warning raise-missing-from

2023-11-03 Thread Markus Armbruster
Peter Maydell writes: > On Fri, 3 Nov 2023 at 03:08, John Snow wrote: >> >> On Wed, Oct 25, 2023 at 6:10 AM Markus Armbruster wrote: >> > >> > Pylint advises: >> > >> > docs/sphinx/qapidoc.py:518:12: W0707: Consider explicitly re-raising >> > using 'raise ExtensionError(str(err)) from err'

Re: [PATCH 1/1] sphinx/qapidoc: Tidy up pylint warning raise-missing-from

2023-11-03 Thread Peter Maydell
On Fri, 3 Nov 2023 at 03:08, John Snow wrote: > > On Wed, Oct 25, 2023 at 6:10 AM Markus Armbruster wrote: > > > > Pylint advises: > > > > docs/sphinx/qapidoc.py:518:12: W0707: Consider explicitly re-raising > > using 'raise ExtensionError(str(err)) from err' (raise-missing-from) > > > > Fro

Re: [PATCH 1/1] sphinx/qapidoc: Tidy up pylint warning raise-missing-from

2023-11-02 Thread John Snow
On Wed, Oct 25, 2023 at 6:10 AM Markus Armbruster wrote: > > 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 trace

[PATCH 1/1] sphinx/qapidoc: Tidy up pylint warning raise-missing-from

2023-10-25 Thread Markus Armbruster
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.