ignore emtpy parts
This commit is contained in:
parent
60ad26d201
commit
cdea161d2f
1 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ def get_data(url):
|
||||||
for part in desc[0].text_content().split('\n\n'):
|
for part in desc[0].text_content().split('\n\n'):
|
||||||
if part == 'RESOURCES:':
|
if part == 'RESOURCES:':
|
||||||
break
|
break
|
||||||
|
if part.strip():
|
||||||
txt.append(part)
|
txt.append(part)
|
||||||
if txt:
|
if txt:
|
||||||
if len(txt) > 1:
|
if len(txt) > 1:
|
||||||
|
|
Loading…
Reference in a new issue