From: Claudio-Daniel Freire Date: Wed, 18 May 2011 12:05:20 +0000 (+0200) Subject: Fix XML generation for attribute-less boxes X-Git-Tag: nepi_v2~18 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=52e2cd2faf5250b2986c6fae866db9efb3f24340;p=nepi.git Fix XML generation for attribute-less boxes --- 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)