From c88f13432872f09ba4458c608fcc248983ab185a Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Tue, 3 May 2022 09:55:24 +0300 Subject: [PATCH] Fixed installation bug --- KOTIKOT_launcher.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/KOTIKOT_launcher.py b/KOTIKOT_launcher.py index 2c7bd1c..3894b19 100644 --- a/KOTIKOT_launcher.py +++ b/KOTIKOT_launcher.py @@ -4,7 +4,10 @@ import sys import subprocess import requests import json -from OfficialProjects.LAUNCHERFILES.KOTIKOTlauncherReminder import popup +try: + from OfficialProjects.LAUNCHERFILES.KOTIKOTlauncherReminder import popup +except: + print("[!] Error: KOTIKOTlauncherReminder.py not found, it will be downloaded") launchfolder = os.getcwd() offprojects = launchfolder + "/OfficialProjects/" @@ -41,7 +44,12 @@ if __name__ == "__main__": urllib.request.urlretrieve(settingsurl, launcherfiles + "KOTIKOTlauncherSettings.py") urllib.request.urlretrieve(launcherversionurl, launcherfiles + "v") - popup("Launcher updated, please restart it") + try: + popup("Launcher updated, please restart it") + except: + from OfficialProjects.LAUNCHERFILES.KOTIKOTlauncherReminder import popup + popup("Launcher updated, please restart it") + sys.exit(0)