Log error message from parser for items in storage

This commit is contained in:
Unrud 2017-06-02 16:36:02 +02:00 committed by GitHub
parent a1ebc52b39
commit 396b9ffecb

View File

@ -284,8 +284,8 @@ class Item:
try:
self._item = vobject.readOne(self._text)
except Exception as e:
raise RuntimeError("Failed to parse item %r in %r" %
(self.href, self.collection.path)) from e
raise RuntimeError("Failed to parse item %r in %r: %s" %
(self.href, self.collection.path, e)) from e
return self._item
@property