From 2b45af92f30f578857248ff9ffa22733e083cdd4 Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 21 Jun 2017 09:49:04 +0200 Subject: [PATCH] Small improvements for wording in exceptions messages --- radicale/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index 2909c68..95f22b2 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -305,7 +305,7 @@ class Item: try: self._item = vobject.readOne(self._text) 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 return self._item @@ -1035,7 +1035,7 @@ class Collection(BaseCollection): text=btext.decode(self.encoding)).item check_item(vobject_item) 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 # Serialize the object again, to normalize the text representation. # The storage may have been edited externally.