aboutsummaryrefslogtreecommitdiffstats
path: root/grobid_tei_xml/parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'grobid_tei_xml/parse.py')
-rwxr-xr-xgrobid_tei_xml/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grobid_tei_xml/parse.py b/grobid_tei_xml/parse.py
index dea1f2e..ebdf65b 100755
--- a/grobid_tei_xml/parse.py
+++ b/grobid_tei_xml/parse.py
@@ -114,7 +114,7 @@ def _parse_editor(elem: ET.Element, ns: str = ns) -> List[GrobidAuthor]:
"""
persname_tags = elem.findall(f"./{{{ns}}}persName")
- if persname_tags is None:
+ if len(persname_tags or []) == 0:
if elem.find("*") is None:
# sometimes there is a "bare" editor name we can use
raw_name = elem.text