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

[Error] PubmedCurator was not working because of the lack of altmetric score. #1

Open
Imamachi-n opened this issue May 27, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@Imamachi-n
Copy link
Owner

Imamachi-n commented May 27, 2018

PubmedCurator was not working because of the lack of altmetric score.
Altmetric.com API could not return pct key.

Traceback (most recent call last):
  File "./main4Pubmed.py", line 70, in <module>
    main()
  File "./main4Pubmed.py", line 41, in main
    altmetrics_data = check_altmetrics(doi_info)
  File "/home/pi/Desktop/BioRxivCurator/src/checkAltmetrics.py", line 19, in check_altmetrics
    if response["context"]['journal']['pct'] >= 90:
KeyError: 'context'
@Imamachi-n Imamachi-n changed the title [Error] [Error] PubmedCurator was not working because of the lack of altmetric score. May 27, 2018
@Imamachi-n
Copy link
Owner Author

Skip the articles without altmetric score to escape the above errors. But this fix cannot completely correct the problem...

@Imamachi-n Imamachi-n added the bug Something isn't working label May 27, 2018
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

1 participant