File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,13 @@ def rec_load_all(self, zone):
69
69
'o' : current_count ,
70
70
'z' : zone
71
71
})
72
- has_more = records ['response' ]['recs' ]['has_more' ]
73
- current_count += records ['response' ]['recs' ]['count' ]
74
- for record in records ['response' ]['recs' ]['objs' ]:
75
- yield record
72
+ try :
73
+ has_more = records ['response' ]['recs' ]['has_more' ]
74
+ current_count += records ['response' ]['recs' ]['count' ]
75
+ for record in records ['response' ]['recs' ]['objs' ]:
76
+ yield record
77
+ except KeyError :
78
+ has_more = False
76
79
77
80
def zone_check (self , zones ):
78
81
"""
Original file line number Diff line number Diff line change 6
6
7
7
setup (
8
8
name = 'pyflare' ,
9
- version = '1.1.1 ' ,
9
+ version = '1.1.2 ' ,
10
10
packages = packages ,
11
11
url = 'https://github.com/jlinn/pyflare' ,
12
12
license = 'LICENSE.txt' ,
You can’t perform that action at this time.
0 commit comments