Blame SOURCES/fix-firewalld-logging.patch

22a9e5
diff --git a/slip/dbus/polkit.py b/slip/dbus/polkit.py
22a9e5
index e92db4d..cc3dbd8 100644
22a9e5
--- a/slip/dbus/polkit.py
22a9e5
+++ b/slip/dbus/polkit.py
22a9e5
@@ -206,17 +206,17 @@ class PolKit(object):
22a9e5
     @property
22a9e5
     def _interface(self):
22a9e5
         if not PolKit.__interface:
22a9e5
-            PolKit.__interface = dbus.Interface(self._bus.get_object(
22a9e5
-                self._dbus_name, self._dbus_path),
22a9e5
-                self._dbus_interface)
22a9e5
+            try:
22a9e5
+                PolKit.__interface = dbus.Interface(self._bus.get_object(
22a9e5
+                    self._dbus_name, self._dbus_path),
22a9e5
+                    self._dbus_interface)
22a9e5
+            except dbus.DBusException:
22a9e5
+                pass
22a9e5
         return PolKit.__interface
22a9e5
 
22a9e5
     @property
22a9e5
     def _polkit_present(self):
22a9e5
-        try:
22a9e5
-            return bool(self._interface)
22a9e5
-        except dbus.DBusException:
22a9e5
-            return False
22a9e5
+        return bool(self._interface)
22a9e5
 
22a9e5
     def __dbus_system_bus_name_uid(self, system_bus_name):
22a9e5
         bus_object = self._bus.get_object(
22a9e5
@@ -258,8 +258,7 @@ class PolKit(object):
22a9e5
         challenge=True, details={}):
22a9e5
 
22a9e5
         if not self._polkit_present:
22a9e5
-            reply_handler(
22a9e5
-                action_id is None or
22a9e5
+            return reply_handler(action_id is None or
22a9e5
                 self.__dbus_system_bus_name_uid(system_bus_name) == 0)
22a9e5
 
22a9e5
         flags = 0