Remove workarounds for bugs in VObject

The bugs got fixed in version 0.9.5
This commit is contained in:
Unrud
2017-07-01 05:18:17 +02:00
parent 92ab06ccb7
commit 56c88b4c54
2 changed files with 5 additions and 35 deletions

View File

@ -1118,19 +1118,8 @@ class Collection(BaseCollection):
cetag = get_etag(ctext)
cuid = get_uid_from_object(vobject_item)
try:
try:
ctag, cstart, cend = xmlutils.find_tag_and_time_range(
vobject_item)
except xmlutils.VObjectBugException as e:
# HACK: Extraction of metadata failed, because of bugs in
# VObject.
self.logger.warning(
"Failed to find tag and time range of item %r from %r "
"(Bug in VObject): %s", href, self.path, e,
exc_info=True)
ctag = xmlutils.find_tag(vobject_item)
cstart = xmlutils.TIMESTAMP_MIN
cend = xmlutils.TIMESTAMP_MAX
ctag, cstart, cend = xmlutils.find_tag_and_time_range(
vobject_item)
except Exception as e:
raise RuntimeError("Failed to find tag and time range of item "
"%r from %r: %s" % (href, self.path,