skip records with no pointer (top level authorities)
authorTony Mack <tmack@cs.princeton.edu>
Sun, 21 Feb 2010 23:54:47 +0000 (23:54 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Sun, 21 Feb 2010 23:54:47 +0000 (23:54 +0000)
sfa/plc/api.py

index 551f7ea..903df15 100644 (file)
@@ -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"):