[elbe-devel] [PATCH 16/75] commands prjrepo: Fix Pylint

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


On Mon, May 25, 2020 at 11:42:09AM -0400, Olivier Dion wrote:
> 92: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/prjrepo.py | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/elbepack/commands/prjrepo.py b/elbepack/commands/prjrepo.py
> index 35b63e3b..80ccffeb 100644
> --- a/elbepack/commands/prjrepo.py
> +++ b/elbepack/commands/prjrepo.py
> @@ -80,6 +80,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)
> @@ -89,13 +96,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