Skip to content

Commit

Permalink
chore: fix setup_torch
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker1212 committed Dec 30, 2024
1 parent 5d4b182 commit 01869db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def get_readme():

MODULE_NAME = "rapid_table_torch"
obtainer = GetPyPiLatestVersion()
latest_version = obtainer(MODULE_NAME)
try:
latest_version = obtainer(MODULE_NAME)
except Exception:
latest_version = "0.0.0"
VERSION_NUM = obtainer.version_add_one(latest_version)

if len(sys.argv) > 2:
Expand Down

0 comments on commit 01869db

Please sign in to comment.