WDscholia / scholia

Wikidata-based scholarly profiles
https://scholia.toolforge.org
Other
225 stars 81 forks source link

Error in `wikipedia.py` test #2535

Closed fnielsen closed 2 months ago

fnielsen commented 2 months ago

Describe the bug Test fails for wikipedia.py

To Reproduce Steps to reproduce the behavior:


096     wikitext : str
097         String with wikipedia template formatted bibliography.
098 
099     References
100     ----------
101     https://en.wikipedia.org/wiki/Template:Cite_journal
102 
103     Examples
104     --------
105     >>> wikitext = q_to_bibliography_templates("Q28923929")
UNEXPECTED EXCEPTION: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
...

**Expected behavior**
Should return a string
fnielsen commented 2 months ago

There is missing a User-Agent specification in the call to WDQS.