[elbe-devel] [PATCH 14/75] commands control: Fix Pylint

Torben Hohn torben.hohn at linutronix.de
Fri May 29 11:21:31 CEST 2020


On Mon, May 25, 2020 at 11:42:07AM -0400, Olivier Dion wrote:
> 137:11: E0701: (bad-except-order)
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/commands/control.py | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/elbepack/commands/control.py b/elbepack/commands/control.py
> index 24b39269..12c6a6d0 100644
> --- a/elbepack/commands/control.py
> +++ b/elbepack/commands/control.py
> @@ -125,6 +125,13 @@ def run_command(argv):
>              debug=opt.debug,
>              retries=int(
>                  opt.retries))
> +    except URLError as e:
> +        print("Failed to connect to Soap server %s:%s\n" %
> +              (opt.host, opt.port), file=sys.stderr)
> +        print("", file=sys.stderr)
> +        print("Check, wether the initvm is actually running.", file=sys.stderr)
> +        print("try 'elbe initvm start'", file=sys.stderr)
> +        sys.exit(10)
>      except socket.error as e:
>          print("Failed to connect to Soap server %s:%s\n" %
>                (opt.host, opt.port), file=sys.stderr)
> @@ -134,13 +141,6 @@ def run_command(argv):
>              file=sys.stderr)
>          print("try 'elbe initvm attach'", file=sys.stderr)
>          sys.exit(10)
> -    except URLError as e:
> -        print("Failed to connect to Soap server %s:%s\n" %
> -              (opt.host, opt.port), file=sys.stderr)
> -        print("", file=sys.stderr)
> -        print("Check, wether the initvm is actually running.", file=sys.stderr)
> -        print("try 'elbe initvm start'", file=sys.stderr)
> -        sys.exit(10)
>      except BadStatusLine as e:
>          print("Failed to connect to Soap server %s:%s\n" %
>                (opt.host, opt.port), file=sys.stderr)
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list