fix: formating
This commit is contained in:
1 file changed
+2
-6
@@ -110,9 +110,7 @@ def _dbus_introspect(bus, service: str, path: str, timeout: int) -> str:
|
|||||||
)
|
)
|
||||||
return res.get_child_value(0).get_string() if res else ""
|
return res.get_child_value(0).get_string() if res else ""
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(
|
logger.debug(f"[service] introspect {service}:{path} failed: {e}")
|
||||||
f"[service] introspect {service}:{path} failed: {e}"
|
|
||||||
)
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
@@ -131,9 +129,7 @@ def _dbus_get_pid(bus, service: str, timeout: int) -> int:
|
|||||||
)
|
)
|
||||||
return res.get_child_value(0).get_uint32() if res else 0
|
return res.get_child_value(0).get_uint32() if res else 0
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(
|
logger.debug(f"[service] GetConnectionUnixProcessID for {service} failed: {e}")
|
||||||
f"[service] GetConnectionUnixProcessID for {service} failed: {e}"
|
|
||||||
)
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user