Small improvements for wording in exceptions messages
This commit is contained in:
parent
b1b1a31ec3
commit
2b45af92f3
@ -305,7 +305,7 @@ class Item:
|
|||||||
try:
|
try:
|
||||||
self._item = vobject.readOne(self._text)
|
self._item = vobject.readOne(self._text)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to parse item %r in %r: %s" %
|
raise RuntimeError("Failed to parse item %r from %r: %s" %
|
||||||
(self.href, self.collection.path, e)) from e
|
(self.href, self.collection.path, e)) from e
|
||||||
return self._item
|
return self._item
|
||||||
|
|
||||||
@ -1035,7 +1035,7 @@ class Collection(BaseCollection):
|
|||||||
text=btext.decode(self.encoding)).item
|
text=btext.decode(self.encoding)).item
|
||||||
check_item(vobject_item)
|
check_item(vobject_item)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError("Failed to parse item %r from %r: %s" %
|
raise RuntimeError("Failed to load item %r in %r: %s" %
|
||||||
(href, self.path, e)) from e
|
(href, self.path, e)) from e
|
||||||
# Serialize the object again, to normalize the text representation.
|
# Serialize the object again, to normalize the text representation.
|
||||||
# The storage may have been edited externally.
|
# The storage may have been edited externally.
|
||||||
|
Loading…
Reference in New Issue
Block a user