Ignore exceptions

This commit is contained in:
BarsTiger
2022-03-18 22:19:12 +02:00
parent b53c058186
commit e2f0ae8574

View File

@@ -63,6 +63,7 @@ def download_app(app):
def launchApp(): def launchApp():
try:
with open("OfficialProjects/LAUNCHERFILES/apps.json") as appsfile: with open("OfficialProjects/LAUNCHERFILES/apps.json") as appsfile:
apps = json.load(appsfile) apps = json.load(appsfile)
name = KOTIKOTlauncher.sender().text() name = KOTIKOTlauncher.sender().text()
@@ -88,8 +89,8 @@ def launchApp():
print(f"---------------- {displayName} ----------------") print(f"---------------- {displayName} ----------------")
subprocess.Popen(str(sys.executable + " " if app['runtime'] == "python" else "") + app['run'], cwd=directory, subprocess.Popen(str(sys.executable + " " if app['runtime'] == "python" else "") + app['run'], cwd=directory,
shell=True, close_fds=True) shell=True, close_fds=True)
if not app['window']: except:
KOTIKOTreminder.show() pass
# ---------------- Checking buttons ---------------- # ---------------- Checking buttons ----------------