[elbe-devel] [PATCH 1/3] elbepack: pbuilderaction: drop unused PBuilderError

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jul 26 10:55:10 CEST 2024


It is never raised.

Also delete the dead comment next to it.

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

diff --git a/elbepack/commands/pbuilder.py b/elbepack/commands/pbuilder.py
index e2af5a88c850..851e277973b3 100644
--- a/elbepack/commands/pbuilder.py
+++ b/elbepack/commands/pbuilder.py
@@ -6,7 +6,7 @@ import sys
 from optparse import OptionParser
 
 from elbepack.commands.preprocess import add_xmlpreprocess_passthrough_options
-from elbepack.pbuilderaction import PBuilderAction, PBuilderError
+from elbepack.pbuilderaction import PBuilderAction
 
 
 def run_command(argv):
@@ -73,9 +73,4 @@ def run_command(argv):
         PBuilderAction.print_actions()
         sys.exit(92)
 
-    try:
-        action.execute(opt, args[1:])
-    except PBuilderError as e:
-        print('PBuilder Exception', file=sys.stderr)
-        print(e, file=sys.stderr)
-        sys.exit(93)
+    action.execute(opt, args[1:])
diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
index 41685777c379..b8bc6d5f05b1 100644
--- a/elbepack/pbuilderaction.py
+++ b/elbepack/pbuilderaction.py
@@ -10,14 +10,6 @@ from elbepack.filesystem import TmpdirFilesystem
 from elbepack.xmlpreprocess import preprocess_file
 
 
-# Create download directory with timestamp,
-# if necessary
-
-
-class PBuilderError(Exception):
-    pass
-
-
 class PBuilderAction:
     actiondict = {}
 

-- 
2.45.2



More information about the elbe-devel mailing list