Minor fix for selecting correct repeaterbook script.
This commit is contained in:
parent
6ba024ad02
commit
85a88b19e3
|
|
@ -160,7 +160,7 @@ class Repeaters(object):
|
||||||
logger.debug("Trying {0} ... got {1} bytes".format(url1, len(data)))
|
logger.debug("Trying {0} ... got {1} bytes".format(url1, len(data)))
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
# ...until we get the result
|
# ...until we get the result
|
||||||
if "results" in data:
|
if "results" in data and len(data["results"]) > 0:
|
||||||
break
|
break
|
||||||
# If no results, do not continue
|
# If no results, do not continue
|
||||||
if "results" not in data:
|
if "results" not in data:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue