[elbe-devel] [PATCH 14/75] commands control: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:07 CEST 2020
137:11: E0701: (bad-except-order)
Signed-off-by: Olivier Dion <dion 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
More information about the elbe-devel
mailing list