diff --git a/ox/web/ubu.py b/ox/web/ubu.py index 5870bc1..21c1695 100644 --- a/ox/web/ubu.py +++ b/ox/web/ubu.py @@ -54,7 +54,8 @@ def get_data(url): for part in desc[0].text_content().split('\n\n'): if part == 'RESOURCES:': break - txt.append(part) + if part.strip(): + txt.append(part) if txt: if len(txt) > 1: txt = txt[1:]