Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Skip download for arXiv articles with broken ID or version #586

Merged
merged 3 commits into from
Feb 21, 2022

Conversation

FrancescoCasalegno
Copy link
Contributor

@FrancescoCasalegno FrancescoCasalegno commented Feb 21, 2022

Fixes #585.

Description

This PR fixes the CLI download error caused by arXiv papers with broken ID or version. See comments to #585 for details.

The solution implemented here is to simply skip such problematic papers. This is consistent with the fact that also arXiv cannot retrieve such articles (see e.g. https://arxiv.org/pdf/1808.02949v1.pdf).

How to test?

Please provide here instructions on how to test the changes introduced by this PR.
(if some changes cannot be tested by automated tests)

Checklist

  • This PR refers to an issue from the issue tracker.
    (if it is not the case, please create an issue first).
  • Unit tests added.
    (if needed)
  • Type annotations added.
    (if a function is added or modified)
  • All CI tests pass.

Copy link
Contributor

@jankrepl jankrepl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

Copy link
Contributor

@EmilieDel EmilieDel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@FrancescoCasalegno FrancescoCasalegno merged commit 26af746 into master Feb 21, 2022
@FrancescoCasalegno FrancescoCasalegno deleted the bad-arxiv-id-download branch February 21, 2022 13:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bbs_database download arxiv fails with invalid literal for int()
3 participants