Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion of XML file with Blank DOI Field Results in TypeError #106

Open
bradcarr23 opened this issue Jan 30, 2018 · 0 comments
Open

Conversion of XML file with Blank DOI Field Results in TypeError #106

bradcarr23 opened this issue Jan 30, 2018 · 0 comments

Comments

@bradcarr23
Copy link

Code sample, preferably able to be copy-pasted and run with no changes

respth2ck -i st_burcat_1981-2.xml -fa "Bradley Carrano"

Expected behavior

Conversion Succeeds

Actual behavior, including any error messages

Traceback (most recent call last):
  File "C:\Users\Brad\Miniconda3\Scripts\respth2ck-script.py", line 5, in <module>
    exit(respth2ck())
  File "C:\Users\Brad\Miniconda3\lib\site-packages\pyked\converters.py", line 575, in respth2ck
    ReSpecTh_to_ChemKED(args.input, args.output, args.file_author, args.file_author_orcid)
  File "C:\Users\Brad\Miniconda3\lib\site-packages\pyked\converters.py", line 483, in ReSpecTh_to_ChemKED
    properties['reference'] = get_reference(root)
  File "C:\Users\Brad\Miniconda3\lib\site-packages\pyked\converters.py", line 107, in get_reference
    ref = habanero.Crossref().works(ids=ref_doi)['message']
TypeError: list indices must be integers or slices, not str

PyKED/ChemKED version, Python version, OS version

0.3.0,
st_burcat_1981-2 - Copy.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant