[pitivi] ElementTreeFormatter: Don't attempt to deserialize blank properties.



commit e92763592dc357cfc1c1acb4b3f03eb9291e5eb6
Author: Edward Hervey <bilboed bilboed com>
Date:   Sat Nov 28 10:57:27 2009 +0100

    ElementTreeFormatter: Don't attempt to deserialize blank properties.
    
    Fixes #603202

 pitivi/formatters/etree.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/formatters/etree.py b/pitivi/formatters/etree.py
index fc0431e..c0da1f0 100644
--- a/pitivi/formatters/etree.py
+++ b/pitivi/formatters/etree.py
@@ -258,7 +258,8 @@ class ElementTreeFormatter(Formatter):
     def _deserializeDict(self, element):
         d = {}
         for a, b in element.attrib.iteritems():
-            d[a] = self._parsePropertyValue(b)
+            if len(b):
+                d[a] = self._parsePropertyValue(b)
         return d
 
     def _saveProjectSettings(self, settings):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]