fix bug handling page with zero outlinks

This commit is contained in:
Noah Levitt 2016-12-09 16:43:23 -08:00
parent af1e1c75ec
commit d68053764c
2 changed files with 6 additions and 3 deletions

View File

@ -318,8 +318,11 @@ __brzl_compileOutlinks(window).join('\n');
chain = []
def set_outlinks(message):
self._outlinks = frozenset(
message["result"]["result"]["value"].split("\n"))
if message["result"]["result"]["value"]:
self._outlinks = frozenset(
message["result"]["result"]["value"].split("\n"))
else:
self._outlinks = frozenset()
chain.append({
"info": "retrieving outlinks",

View File

@ -32,7 +32,7 @@ def find_package_data(package):
setuptools.setup(
name='brozzler',
version='1.1b8.dev141',
version='1.1b8.dev142',
description='Distributed web crawling with browsers',
url='https://github.com/internetarchive/brozzler',
author='Noah Levitt',