[elbe-devel] [PATCH 2/3] Fix None case for src-opts in cdroms
dion at linutronix.de
dion at linutronix.de
Wed Aug 7 15:25:32 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/cdroms.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/elbepack/cdroms.py b/elbepack/cdroms.py
index ab5b6a23..9d3c1aac 100644
--- a/elbepack/cdroms.py
+++ b/elbepack/cdroms.py
@@ -51,7 +51,10 @@ def iso_option_valid(opt_name, text):
def get_iso_options(log, xml):
options = []
- for node in xml.node("target/src-opts"):
+ src_opts = xml.node("target/src-opts")
+ if src_opts is None:
+ return ""
+ for node in src_opts:
if node.tag not in iso_options:
continue
option = iso_options[node.tag]
--
2.11.0
More information about the elbe-devel
mailing list