Fix FutureWarning
This commit is contained in:
parent
abfb386e13
commit
79785d0400
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ class DownloadGen(object):
|
||||||
backgroundthread.BGThreader.addTask(task)
|
backgroundthread.BGThreader.addTask(task)
|
||||||
|
|
||||||
def on_chunk_downloaded(self, xml):
|
def on_chunk_downloaded(self, xml):
|
||||||
if xml:
|
if xml is not None:
|
||||||
for child in xml:
|
for child in xml:
|
||||||
self.xml.append(child)
|
self.xml.append(child)
|
||||||
self.pending_counter.pop()
|
self.pending_counter.pop()
|
||||||
|
|
Loading…
Reference in a new issue