Skip to content

Commit 0aec183

Browse files
Robust html_unescape for titles that are just 'True'
1 parent 3141cbd commit 0aec183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybliometrics/scopus/scopus_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def results(self) -> Optional[List[NamedTuple]]:
8686
# Get text fields and unescape
8787
for key in ['dc:title', 'dc:description', 'authkeywords']:
8888
value = item.get(key)
89-
info[key] = html_unescape(value) if (self.unescape and value) else value
89+
info[key] = html_unescape(str(value)) if (self.unescape and value) else value
9090
new = doc(article_number=item.get('article-number'),
9191
title=info.get('dc:title'),
9292
fund_no=item.get('fund-no'),

0 commit comments

Comments
 (0)