[kupfer: 28/31] objects: Better exception message on failed ComposedLeaf
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 28/31] objects: Better exception message on failed ComposedLeaf
- Date: Thu, 31 Dec 2009 12:56:48 +0000 (UTC)
commit 1e795c6807d199bd39ecad2b836c33e5d4dd0689
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Dec 31 13:14:34 2009 +0100
objects: Better exception message on failed ComposedLeaf
kupfer/objects.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index 8a7f84b..a331b14 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -1193,7 +1193,7 @@ class ComposedLeaf (RunnableLeaf):
self.object[:] = [puid.resolve_unique_id(I) for I in state["object"]]
if (not self.object[0] or not self.object[1] or
(I is None) != (self.object[2] is None)):
- raise InvalidDataError
+ raise InvalidDataError("Parts of %s not restored" % unicode(self))
def get_actions(self):
action = self.object[1]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]