[elbe-devel] [PATCH 28/75] daemons soap faults: Fix Pylint
Olivier Dion
dion at linutronix.de
Fri May 29 15:14:18 CEST 2020
On Fri, 29 May 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:
> On Mon, May 25, 2020 at 11:42:21AM -0400, Olivier Dion wrote:
>> 75:4: R1705: (no-else-return)
>> 71:0: R0911: (too-many-return-statements)
>> 71:0: R0915: (too-many-statements)
>>
>> Signed-off-by: Olivier Dion <dion at linutronix.de>
>> ---
>> elbepack/daemons/soap/faults.py | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/elbepack/daemons/soap/faults.py b/elbepack/daemons/soap/faults.py
>> index 288d1c8f..c0d05fb5 100644
>> --- a/elbepack/daemons/soap/faults.py
>> +++ b/elbepack/daemons/soap/faults.py
>> @@ -72,6 +72,9 @@ def soap_faults(func):
>> """ decorator, which wraps Exceptions to the proper
>> Soap Faults, and raises these.
>> """
>> + # pylint: disable=no-else-return
>
> why ignore no else return ?
> just remove the else.
IIRC it generates more errors after that. I'll have a look at it.
--
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list