pr-omethe-us / PyKED

Python interface to the ChemKED database format
https://pr-omethe-us.github.io/PyKED/
BSD 3-Clause "New" or "Revised" License
14 stars 15 forks source link

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

Open bradcarr23 opened 6 years ago

bradcarr23 commented 6 years ago

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