Bugfix stack trace on remove (#842)

This commit is contained in:
Pascal Vizeli 2018-11-30 00:09:33 +01:00 committed by GitHub
parent 633a2e93bf
commit 73afced4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,8 @@ async def remove_data(folder):
_, error_msg = await proc.communicate()
except OSError as err:
error_msg = str(err)
else:
if proc.returncode == 0:
return
if proc.returncode == 0:
return
_LOGGER.error("Can't remove Add-on Data: %s", error_msg)