From b76ed9373f14b51c22819fde047dccc0143500da Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 21 Apr 2010 00:48:20 +0000 Subject: [PATCH] fix KeyError --- sfa/trust/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 50957ea3..73fb5928 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -68,7 +68,7 @@ class Auth: # Make sure the credential's target matches the specified hrn. # This check does not apply to trusted peers - trusted_peers = [gid.get_hrn() for gid in self.trusted_cert_list.get_list()] + trusted_peers = [gid.get_hrn() for gid in self.trusted_cert_list] if hrn and self.client_gid.get_hrn() not in trusted_peers: if not hrn == self.object_gid.get_hrn(): raise PermissionError("Target hrn: %s doesn't match specified hrn: %s " % \ -- 2.43.0