diff --git a/PyFit.py b/PyFit.py index d5e75e7..1f6a7ad 100644 --- a/PyFit.py +++ b/PyFit.py @@ -20,7 +20,7 @@ main_path = os.path.join(os.getenv("HOME"), "PyFit") # Global variables -version = "0.5.2" +version = "0.5.3" exercise_index = 0 info_index = 0 exercise_list = [] @@ -408,12 +408,8 @@ def check_for_updates(alert_when_no_update=False): if messagebox.askyesno("PyFit", f"An update is available (v{latest_version_formatted}). Do you want to download this update?"): save_path = filedialog.askdirectory(title="Select save location") if os.name == 'nt': - try: - urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.exe", - os.path.join(save_path, "PyFit.exe")) - except: - urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.zip", - os.path.join(save_path, "PyFit.zip")) + urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.exe", + os.path.join(save_path, "PyFit.exe")) else: urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.zip", os.path.join(save_path, "PyFit.dmg")) diff --git a/setup.py b/setup.py index 7b4c7ae..da6a028 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ DATA_FILES = [('', ['media'])] OPTIONS = { 'iconfile': 'media/icon.icns', - 'plist': {'CFBundleShortVersionString': '0.5.2', }, + 'plist': {'CFBundleShortVersionString': '0.5.3', }, 'packages': ['customtkinter']} setup(