From 0862db667222330c2f121dbdaf8f1a883c3151c9 Mon Sep 17 00:00:00 2001 From: Nick Heap Date: Sat, 13 Nov 2021 20:21:40 +0000 Subject: [PATCH] fix: check if bluealsa is in cache --- launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 36c1363..296f945 100644 --- a/launch.py +++ b/launch.py @@ -154,7 +154,7 @@ subprocess.run("sudo rm -rf {}*".format(bluez_folder_path), shell=True) # purge A2DP profile to improve connectivity stability -if cache['bluealsa'].is_installed: +if 'bluealsa' in cache and cache['bluealsa'].is_installed: cache['bluealsa'].mark_delete(purge=True) try: cache.commit()