From fb57935872f018e18f113379f9f24875e9c1ee86 Mon Sep 17 00:00:00 2001 From: Lyuba Zehl Date: Sat, 7 Mar 2015 13:59:18 +0100 Subject: [PATCH] corrected error occurring in list of None values of an odml element --- odml/tools/xmlparser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odml/tools/xmlparser.py b/odml/tools/xmlparser.py index 790528c1..f4ea3a46 100644 --- a/odml/tools/xmlparser.py +++ b/odml/tools/xmlparser.py @@ -82,6 +82,7 @@ def save_element(e): if isinstance(val, list): for v in val: + if v is None: continue ele = XMLWriter.save_element(v) cur.append(ele) else: