From 4a868585673778e245df96e39b88b4f8c5eab470 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 2 Jun 2009 20:28:13 +0000 Subject: [PATCH] fixed raised exception --- geni/methods/get_credential.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.0