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

Olivier Dion dion at linutronix.de
Fri Jun 5 19:06:40 CEST 2020


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.27.0




More information about the elbe-devel mailing list