Skip to content

Commit

Permalink
Update v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkHershey committed Nov 2, 2023
1 parent 61e59a5 commit 30be9a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.4
1.1.5
1 change: 0 additions & 1 deletion arxiv_dl/arxiv_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
scrape_metadata_nips,
scrape_metadata_openreview,
)
from .updater import check_update


def main(
Expand Down
11 changes: 9 additions & 2 deletions arxiv_dl/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
def check_latest_version():
"""Check the latest version of arxiv-dl on PyPI."""
pypi_url = "https://pypi.org/pypi/arxiv-dl/json"
response = requests.get(pypi_url)
try:
response = requests.get(pypi_url)
except requests.exceptions.ConnectionError:
return ""
except Exception as e:
# print(e)
return ""

if response.status_code == 200:
pypi_data = response.text
pypi_data = json.loads(pypi_data)
Expand All @@ -31,7 +38,7 @@ def check_update():

if latest_version and latest_version != current_version:
print(
f"[arxiv-dl] latest version available: {latest_version}. You may update by running: pip install --upgrade arxiv-dl"
f"[arxiv-dl] latest version available: {latest_version}. You may update by running: pip install --upgrade arxiv-dl\n"
)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MAJOR = 1
MINOR = 1
MICRO = 4
MICRO = 5
VERSION = "%d.%d.%d" % (MAJOR, MINOR, MICRO)


Expand Down

0 comments on commit 30be9a4

Please sign in to comment.