From 6c08e803275a08141f3a1601e13d897d83387c0f Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 5 May 2010 15:49:16 +0000 Subject: [PATCH] Always return a string (even if error message) for SimpleAccess.display svn: r15328 --- src/Simple/_SimpleAccess.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Simple/_SimpleAccess.py b/src/Simple/_SimpleAccess.py index becc3ff19..2bb291802 100644 --- a/src/Simple/_SimpleAccess.py +++ b/src/Simple/_SimpleAccess.py @@ -913,7 +913,11 @@ class SimpleAccess(object): obj.type, self.gid(obj)) else: - return "Error: invalid object class: '%s'" % object_class + return "Error: incorrect object class: '%s'" % type(obj) + else: + return "Error: missing object" + else: + return "Error: invalid object class: '%s'" % object_class def by_date(event1, event2): """