diff --git a/check_systemd.py b/check_systemd.py index 5232fa7..63f1e97 100755 --- a/check_systemd.py +++ b/check_systemd.py @@ -1111,7 +1111,7 @@ def _bus_type(self) -> BusType: @property def _proxy(self) -> DBusProxy: if self.__proxy is None: - if not DBusProxy or not DBusProxyFlags: + if DBusProxy is None or DBusProxyFlags is None: raise Exception("The package PyGObject (gi) is not available.") self.__proxy = DBusProxy.new_for_bus_sync( self._bus_type,