Always return a string (even if error message) for SimpleAccess.display

svn: r15328
This commit is contained in:
Doug Blank 2010-05-05 15:49:16 +00:00
parent e2e3065cfb
commit 6c08e80327

View File

@ -912,6 +912,10 @@ class SimpleAccess(object):
return "%s: %s [%s]" % (_(object_class),
obj.type,
self.gid(obj))
else:
return "Error: incorrect object class: '%s'" % type(obj)
else:
return "Error: missing object"
else:
return "Error: invalid object class: '%s'" % object_class