diff --git a/pyflare/client.py b/pyflare/client.py index 07caa73..db55841 100755 --- a/pyflare/client.py +++ b/pyflare/client.py @@ -69,10 +69,13 @@ def rec_load_all(self, zone): 'o': current_count, 'z': zone }) - has_more = records['response']['recs']['has_more'] - current_count += records['response']['recs']['count'] - for record in records['response']['recs']['objs']: - yield record + try: + has_more = records['response']['recs']['has_more'] + current_count += records['response']['recs']['count'] + for record in records['response']['recs']['objs']: + yield record + except KeyError: + has_more = False def zone_check(self, zones): """ diff --git a/setup.py b/setup.py index 0d2c67e..cacf5ab 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='pyflare', - version='1.1.1', + version='1.1.2', packages=packages, url='https://github.com/jlinn/pyflare', license='LICENSE.txt',