Skip to content

Commit 5801bb6

Browse files
Fix bug due to 0 overall citations (close #301)
1 parent b7a2ec6 commit 5801bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybliometrics/scopus/abstract_citation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def cc(self) -> List[List[Tuple[int, int]]]:
4343
for doc in self._citeInfoMatrix:
4444
try:
4545
cites = [int(d['$']) for d in doc['cc']]
46-
except AttributeError: # No citations
46+
except (AttributeError, TypeError): # No citations
4747
cites = [0]*len(_years)
4848
outer.append(list(zip(_years, cites)))
4949
return _maybe_return_list(outer)

0 commit comments

Comments
 (0)