aboutsummaryrefslogtreecommitdiff
path: root/modpackman.py
diff options
context:
space:
mode:
Diffstat (limited to 'modpackman.py')
-rwxr-xr-xmodpackman.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modpackman.py b/modpackman.py
index 69ebe41..e5e5fdc 100755
--- a/modpackman.py
+++ b/modpackman.py
@@ -85,6 +85,9 @@ def apply_updates():
print("Getting new versions of all mods...")
mod_urls = util.find_updated_urls([x for x in config['mods'].values()], config['pack']['game_version'], threads=16)
print("Downloading and checksumming all mods...")
+ if None in mod_urls:
+ print("[!] Checksum generation aborted due to invalid URLs. Please fix them and try again.")
+ exit(1)
checksums = util.find_checksums(mod_urls)
# Write the updated mods list out to pack-lock.ini