ignore emtpy parts

This commit is contained in:
j 2015-03-15 02:12:40 +05:30
parent 60ad26d201
commit cdea161d2f

View file

@ -54,6 +54,7 @@ def get_data(url):
for part in desc[0].text_content().split('\n\n'):
if part == 'RESOURCES:':
break
if part.strip():
txt.append(part)
if txt:
if len(txt) > 1: