[pitivi] ElementTreeFormatter: Don't attempt to deserialize blank properties.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] ElementTreeFormatter: Don't attempt to deserialize blank properties.
- Date: Sat, 28 Nov 2009 10:10:11 +0000 (UTC)
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]