diff --git a/src/python/paperetl/file/tei.py b/src/python/paperetl/file/tei.py index 7d77947..7315afd 100644 --- a/src/python/paperetl/file/tei.py +++ b/src/python/paperetl/file/tei.py @@ -34,7 +34,8 @@ def parse(stream, source): soup = BeautifulSoup(stream, "lxml") - title = soup.title.text + title = soup.find("title") + title = title.text if title and title.text else None # Extract article metadata (