diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index b70a95bf1..bf7c1d879 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2007-06-16 Alex Roitman + * src/GrampsDb/_ReadXML.py (start_url): Correctly parse url type. + 2007-06-16 Brian Pepple * data/gramps.desktop.in: Fix desktop file to conform to desktop file specs. diff --git a/gramps2/src/GrampsDb/_ReadXML.py b/gramps2/src/GrampsDb/_ReadXML.py index ae289e335..1bb909425 100644 --- a/gramps2/src/GrampsDb/_ReadXML.py +++ b/gramps2/src/GrampsDb/_ReadXML.py @@ -978,7 +978,7 @@ class GrampsParser(UpdateCallback): url.path = attrs["href"] url.set_description(attrs.get("description",'')) url.private = bool(attrs.get('priv')) - url.type.set_from_xml_str(attrs['type']) + url.type.set_from_xml_str(attrs.get('type','')) if self.person: self.person.add_url(url) elif self.placeobj: