From 102b7e044ab3cc50022b92dd5d22084b496041e1 Mon Sep 17 00:00:00 2001 From: "J. Nathanael Philipp" Date: Sat, 1 Oct 2022 18:17:24 +0200 Subject: [PATCH] Fix NoneType error. --- gnome-pass-search-provider.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnome-pass-search-provider.py b/gnome-pass-search-provider.py index 2cdad9c..212dd3e 100755 --- a/gnome-pass-search-provider.py +++ b/gnome-pass-search-provider.py @@ -67,7 +67,9 @@ class SearchPassService(dbus.service.Object): self.password_executable = getenv("PASSWORD_EXECUTABLE") or "pass" self.password_mode = getenv("PASSWORD_MODE") or "pass" self.clipboard_executable = getenv("CLIPBOARD_EXECUTABLE") or "wl-copy" - self.disable_notifications = getenv("DISABLE_NOTIFICATIONS").lower() == "true" or False + self.disable_notifications = ( + getenv("DISABLE_NOTIFICATIONS", False).lower() == "true" + ) @dbus.service.method(in_signature="sasu", **sbn) def ActivateResult(self, id, terms, timestamp):