skip empty Disqus threads

legacy/0.2
Martin Zimmermann 11 years ago
parent 66ade6df14
commit 5b52cbdfa6

@ -76,6 +76,9 @@ def disqus(db, xmlfile):
sys.stdout.write("\r[%i%%] %s" % (((i+1)/num * 100), thread.find('%sid' % ns).text))
sys.stdout.flush()
if thread.find('%sid' % ns).text is None:
continue
id = thread.attrib.get(dsq + 'id')
if id in res:
threads += 1

Loading…
Cancel
Save