mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 07:36:29 +00:00
parent
77881e8a58
commit
db444b89d3
@ -123,17 +123,17 @@ class DBus:
|
|||||||
*command,
|
*command,
|
||||||
stdin=asyncio.subprocess.DEVNULL,
|
stdin=asyncio.subprocess.DEVNULL,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.DEVNULL
|
stderr=asyncio.subprocess.PIPE
|
||||||
)
|
)
|
||||||
|
|
||||||
data, _ = await proc.communicate()
|
data, error = await proc.communicate()
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
_LOGGER.error("DBus fatal error: %s", err)
|
_LOGGER.error("DBus fatal error: %s", err)
|
||||||
raise DBusFatalError() from None
|
raise DBusFatalError() from None
|
||||||
|
|
||||||
# Success?
|
# Success?
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
_LOGGER.error("DBus return error: %s", data)
|
_LOGGER.error("DBus return error: %s", error)
|
||||||
raise DBusFatalError()
|
raise DBusFatalError()
|
||||||
|
|
||||||
# End
|
# End
|
||||||
|
Loading…
x
Reference in New Issue
Block a user