From: Tony Mack Date: Wed, 12 Aug 2009 19:25:25 +0000 (+0000) Subject: fix name error, 'record_list' should be 'records' X-Git-Tag: sfa-0.9-1~93 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5ef42726171500af758af75b6063febb323c68bf;p=sfa.git fix name error, 'record_list' should be 'records' --- diff --git a/sfa/methods/resolve.py b/sfa/methods/resolve.py index 0953f1c4..1d3c3b33 100644 --- a/sfa/methods/resolve.py +++ b/sfa/methods/resolve.py @@ -1,6 +1,6 @@ ### $Id$ ### $URL$ - +import traceback from sfa.util.faults import * from sfa.util.method import Method from sfa.util.parameter import Parameter, Mixed @@ -51,11 +51,11 @@ class resolve(Method): credential = self.api.getCredential() try: records = registries[registry_hrn].resolve(credential, hrn) - good_records = [record.as_dict() for record in record_list] + good_records = [record.as_dict() for record in records] if good_records: return good_records except: - pass + traceback.print_exc() # if we still havnt found the record yet, try the local registry auth_hrn = self.api.auth.get_authority(hrn)