[elbe-devel] [PATCH 15/75] commands add: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:08 CEST 2020
27:11: W0703: (broad-except)
34:15: W0703: (broad-except)
42:15: W0703: (broad-except)
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/commands/add.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/elbepack/commands/add.py b/elbepack/commands/add.py
index 8f666a5f..04b518a0 100644
--- a/elbepack/commands/add.py
+++ b/elbepack/commands/add.py
@@ -24,6 +24,7 @@ def run_command(argv):
try:
xml = ElbeXML(args[0])
+ # pylint: disable=broad-except
except Exception as e:
print("Error reading xml file: %s" % str(e))
sys.exit(20)
@@ -31,12 +32,14 @@ def run_command(argv):
for a in args[1:]:
try:
xml.add_target_package(a)
+ # pylint: disable=broad-except
except Exception as e:
print("Error adding package %s: %s" % (a, str(e)))
sys.exit(20)
try:
xml.xml.write(args[0])
+ # pylint: disable=broad-except
except BaseException:
print("Unable to write new xml file")
sys.exit(20)
--
2.26.2
More information about the elbe-devel
mailing list