From 52e2cd2faf5250b2986c6fae866db9efb3f24340 Mon Sep 17 00:00:00 2001 From: Claudio-Daniel Freire Date: Wed, 18 May 2011 14:05:20 +0200 Subject: [PATCH] Fix XML generation for attribute-less boxes --- src/nepi/util/parser/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nepi/util/parser/base.py b/src/nepi/util/parser/base.py index 58bd6ed7..1737f141 100644 --- a/src/nepi/util/parser/base.py +++ b/src/nepi/util/parser/base.py @@ -218,6 +218,7 @@ class ExperimentParser(object): g_info.height, g_info.label) def factory_attributes_to_data(self, data, guid, factory_attributes): + factory_attributes = factory_attributes or dict() for name, value in factory_attributes.iteritems(): data.add_factory_attribute_data(guid, name, value) -- 2.47.0