Pi66

pino
Python notification daemon.
git clone https://git.pi66.xyz/pino

← back to log

enhanced UX and error messages

author: pixel2175
date: 2024-12-21 14:22
hash: df400be13bcb572bd2352bc2d43d01b8b446fc50

Diffstat:

M

uninstall.py
5 ++++++++++++++++++------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/uninstall.py b/uninstall.py
index 068ed95..14d88e1 100644
--- a/uninstall.py
+++ b/uninstall.py
@@ -1,5 +1,6 @@
 import os

+
 def get_distro():
     if os.path.isfile("/etc/os-release"):
         with open("/etc/os-release") as f:
@@ -50,8 +51,8 @@ def remove_files():
             "sudo rm -r /usr/bin/pino  /usr/bin/pino_start /etc/pino/ > /dev/null 2>&1"
         )
         os.system("rm -r ~/.config/pino/ ~/.config/pino/plugs/ > /dev/null 2>&1")
-        print("App Remove: Done")
-    except:
+        print("Remove App: Done")
+    except OSError:
         print("Faild remove")