Skip to content

Commit

Permalink
Set params to empty dict as None is the wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-E-Rose committed Jul 9, 2019
1 parent c84efed commit 650e915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pybliometrics/scopus/author_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_coauthors(self):
coauthor groups.
"""
# Get number of authors to search for
res = download(url=self.coauthor_link, accept='json')
res = download(url=self.coauthor_link)
data = loads(res.text)['search-results']
N = int(data.get('opensearch:totalResults', 0))
# Store information in namedtuples
Expand Down
2 changes: 1 addition & 1 deletion pybliometrics/scopus/utils/get_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def detect_id_type(sid):
return id_type


def download(url, params=None, **kwds):
def download(url, params={}, **kwds):
"""Helper function to download a file and return its content.
Parameters
Expand Down

0 comments on commit 650e915

Please sign in to comment.