include UID in error message
This commit is contained in:
@@ -568,8 +568,8 @@ class Item:
|
|||||||
try:
|
try:
|
||||||
self._text = self.vobject_item.serialize()
|
self._text = self.vobject_item.serialize()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to serialize item %r from %r: %s" %
|
raise RuntimeError("Failed to serialize item %r with UID %r from %r: %s" %
|
||||||
(self.href, self._collection_path,
|
(self.href, self.uid, self._collection_path,
|
||||||
e)) from e
|
e)) from e
|
||||||
return self._text
|
return self._text
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user