From: Tony Mack Date: Tue, 2 Jun 2009 20:28:13 +0000 (+0000) Subject: fixed raised exception X-Git-Tag: sfa-0.9-0@14641~348 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4a868585673778e245df96e39b88b4f8c5eab470;p=sfa.git fixed raised exception --- diff --git a/geni/methods/get_credential.py b/geni/methods/get_credential.py index 3cfe5c1e..4ee2e2da 100644 --- a/geni/methods/get_credential.py +++ b/geni/methods/get_credential.py @@ -111,7 +111,7 @@ class get_credential(Method): rights = self.api.auth.determine_user_rights(None, record) if rights.is_empty(): - raise PermissionError(self.api.auth.client_cred.get_gid_object().get_hrn() + " has no rights to " + record.get_name()) + raise PermissionError(gid.get_hrn() + " has no rights to " + record.get_name()) # create the credential gid = record.get_gid_object()