Fix FutureWarning

This commit is contained in:
croneter 2018-12-01 09:13:23 +01:00
parent abfb386e13
commit 79785d0400

View file

@ -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()