mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
avoid TypeError: 'NoneType' object is not iterable exception at shutdown
This commit is contained in:
parent
908988c4f0
commit
0cc68dd428
2
setup.py
2
setup.py
@ -49,7 +49,7 @@ except:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='warcprox',
|
name='warcprox',
|
||||||
version='2.2b1.dev103',
|
version='2.2b1.dev104',
|
||||||
description='WARC writing MITM HTTP/S proxy',
|
description='WARC writing MITM HTTP/S proxy',
|
||||||
url='https://github.com/internetarchive/warcprox',
|
url='https://github.com/internetarchive/warcprox',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
|
@ -41,7 +41,7 @@ class WarcWriterThread(threading.Thread):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, name='WarcWriterThread', recorded_url_q=None,
|
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()):
|
options=warcprox.Options()):
|
||||||
"""recorded_url_q is a queue.Queue of warcprox.warcprox.RecordedUrl."""
|
"""recorded_url_q is a queue.Queue of warcprox.warcprox.RecordedUrl."""
|
||||||
threading.Thread.__init__(self, name=name)
|
threading.Thread.__init__(self, name=name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user