mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2026-02-06 01:03:25 +00:00
bugfix: password should b unicode
else: request Error UnicodeEncodeError
This commit is contained in:
@@ -105,7 +105,7 @@ def retrieve_doi():
|
||||
|
||||
doi_response = requests.post(
|
||||
url,
|
||||
auth=(username, password),
|
||||
auth=(username, password.encode('utf-8')),
|
||||
json=doi_metadata,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user