Verified Commit b8a07ae5 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

exit if there are no new preprints

parent 06cab369
Pipeline #31136 passed with stage
in 8 minutes and 17 seconds
......@@ -24,6 +24,7 @@ from time import sleep, mktime
import random
import subprocess
import os
import sys
# Web-related
import requests
......@@ -62,8 +63,13 @@ def preprint_ids(only_fresh=True):
]
# +
todays_ids = preprint_ids()
if not todays_ids:
sys.exit()
# -
# ## Download PDFs
today = date.today().isoformat().replace('-', '')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment