From b8b22cecca07187b828694fd65fd38058b1b10c9 Mon Sep 17 00:00:00 2001 From: Vxrtrauter Date: Sat, 28 Jun 2025 02:18:10 +0200 Subject: [PATCH] fix invalid selection message --- core/uztracker_scraper.py | 5 ++++- main.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/uztracker_scraper.py b/core/uztracker_scraper.py index bd53272..79aec42 100644 --- a/core/uztracker_scraper.py +++ b/core/uztracker_scraper.py @@ -52,9 +52,12 @@ def select_program(): selected = "https://uztracker.net/" + results[index].lstrip("./") post_url = selected get_magnet_link(post_url) + else: + print("Invalid Selection.") + except ValueError: - print("Invalid Selection.") + print(Exception) return def get_magnet_link(post_url): diff --git a/main.py b/main.py index f09621b..7275379 100644 --- a/main.py +++ b/main.py @@ -1 +1,3 @@ import core.gui as gui + +