We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d2184 commit a9d91deCopy full SHA for a9d91de
1 file changed
scripts/1-fetch/arxiv_fetch.py
@@ -597,9 +597,12 @@ def query_arxiv(args):
597
# arXiv recommends a 3-seconds delay between consecutive
598
# api calls for efficiency
599
time.sleep(3)
600
+ except requests.HTTPError as e:
601
+ raise shared.QuantifyingException(f"HTTP Error: {e}", 1)
602
except requests.RequestException as e:
- LOGGER.error(f"Request failed: {e}")
- break
603
+ raise shared.QuantifyingException(f"Request Exception: {e}", 1)
604
+ except KeyError as e:
605
+ raise shared.QuantifyingException(f"KeyError: {e}", 1)
606
607
if papers_found_in_batch == 0:
608
break
0 commit comments