From 2b991fe248f664b94430d969bd09af90b0bc8b87 Mon Sep 17 00:00:00 2001 From: Tony Mack <tmack@cs.princeton.edu> Date: Sun, 21 Feb 2010 23:54:47 +0000 Subject: [PATCH] skip records with no pointer (top level authorities) --- sfa/plc/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sfa/plc/api.py b/sfa/plc/api.py index 551f7ead..903df154 100644 --- a/sfa/plc/api.py +++ b/sfa/plc/api.py @@ -403,6 +403,9 @@ class SfaAPI(BaseAPI): # fill sfa info for record in records: + # skip records with no pl info (top level authorities) + if record['pointer'] == -1: + continue sfa_info = {} type = record['type'] if (type == "slice"): -- 2.47.0