Ignore exceptions
This commit is contained in:
@@ -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 ----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user