[elbe-devel] [PATCH 1/4] elbepack: initvm: drop unused InitVMError

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jul 26 13:45:54 CEST 2024


It is never raised.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/commands/initvm.py | 9 ++-------
 elbepack/initvmaction.py    | 4 ----
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/elbepack/commands/initvm.py b/elbepack/commands/initvm.py
index 306457068755..f97a40d56743 100644
--- a/elbepack/commands/initvm.py
+++ b/elbepack/commands/initvm.py
@@ -9,7 +9,7 @@ from optparse import OptionParser, SUPPRESS_HELP
 
 from elbepack.commands import add_deprecated_optparse_option
 from elbepack.commands.preprocess import add_xmlpreprocess_passthrough_options
-from elbepack.initvmaction import InitVMAction, InitVMError
+from elbepack.initvmaction import InitVMAction
 
 
 def run_command(argv):
@@ -89,9 +89,4 @@ def run_command(argv):
         InitVMAction.print_actions()
         sys.exit(49)
 
-    try:
-        action.execute(directory, opt, args[1:])
-    except InitVMError as e:
-        print('InitVM Exception', file=sys.stderr)
-        print(e, file=sys.stderr)
-        sys.exit(50)
+    action.execute(directory, opt, args[1:])
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 6f5751ba52d4..3d070f7901f6 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -29,10 +29,6 @@ def is_soap_local():
 prog = os.path.basename(sys.argv[0])
 
 
-class InitVMError(Exception):
-    pass
-
-
 class InitVMAction:
     actiondict = {}
     qemu_mode = False

-- 
2.45.2



More information about the elbe-devel mailing list