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

If a DOI is not correct, ya2ro fails #46

Closed
dgarijo opened this issue May 5, 2022 · 0 comments
Closed

If a DOI is not correct, ya2ro fails #46

dgarijo opened this issue May 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dgarijo
Copy link
Member

dgarijo commented May 5, 2022

I used https://zenodo.org/record/6518802#.YnO73lxBx9B instead of the right DOI, and I got this error:

Traceback (most recent call last):
  File "/home/dgarijo/Documents/GitHub/ya2ro/env_3.9/bin/ya2ro", line 33, in <module>
    sys.exit(load_entry_point('ya2ro', 'console_scripts', 'ya2ro')())
  File "/home/dgarijo/Documents/GitHub/ya2ro/src/ya2ro/ya2ro.py", line 66, in main
    process_yaml(args.input)
  File "/home/dgarijo/Documents/GitHub/ya2ro/src/ya2ro/ya2ro.py", line 101, in process_yaml
    data = data_wrapper.load_yaml(yaml)
  File "/home/dgarijo/Documents/GitHub/ya2ro/src/ya2ro/data_wrapper.py", line 200, in load_yaml
    init_data = init_paper(p.input_to_vocab, data)
  File "/home/dgarijo/Documents/GitHub/ya2ro/src/ya2ro/data_wrapper.py", line 305, in init_paper
    populate_datasets(paper, input_to_vocab, data)
  File "/home/dgarijo/Documents/GitHub/ya2ro/src/ya2ro/data_wrapper.py", line 411, in populate_datasets
    if doi:
UnboundLocalError: local variable 'doi' referenced before assignmen
@dgarijo dgarijo added the bug Something isn't working label May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants