From db444b89d3dcfc91896da649c4979fb9c7452112 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 4 May 2018 20:58:23 +0200 Subject: [PATCH] Update gdbus.py (#460) * Update gdbus.py * Update gdbus.py --- hassio/utils/gdbus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hassio/utils/gdbus.py b/hassio/utils/gdbus.py index 9ad1e89da..cedae51a4 100644 --- a/hassio/utils/gdbus.py +++ b/hassio/utils/gdbus.py @@ -123,17 +123,17 @@ class DBus: *command, stdin=asyncio.subprocess.DEVNULL, 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: _LOGGER.error("DBus fatal error: %s", err) raise DBusFatalError() from None # Success? if proc.returncode != 0: - _LOGGER.error("DBus return error: %s", data) + _LOGGER.error("DBus return error: %s", error) raise DBusFatalError() # End