Fix XML generation for attribute-less boxes
authorClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Wed, 18 May 2011 12:05:20 +0000 (14:05 +0200)
committerClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Wed, 18 May 2011 12:05:20 +0000 (14:05 +0200)
src/nepi/util/parser/base.py

index 58bd6ed..1737f14 100644 (file)
@@ -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)