avoid TypeError: 'NoneType' object is not iterable exception at shutdown

This commit is contained in:
Noah Levitt 2017-10-06 16:58:27 -07:00
parent 908988c4f0
commit 0cc68dd428
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ except:
setuptools.setup(
name='warcprox',
version='2.2b1.dev103',
version='2.2b1.dev104',
description='WARC writing MITM HTTP/S proxy',
url='https://github.com/internetarchive/warcprox',
author='Noah Levitt',

View File

@ -41,7 +41,7 @@ class WarcWriterThread(threading.Thread):
def __init__(
self, name='WarcWriterThread', recorded_url_q=None,
writer_pool=None, dedup_db=None, listeners=None,
writer_pool=None, dedup_db=None, listeners=[],
options=warcprox.Options()):
"""recorded_url_q is a queue.Queue of warcprox.warcprox.RecordedUrl."""
threading.Thread.__init__(self, name=name)