fix: properly check for stderr from process

This commit is contained in:
fusion44 2022-07-31 18:58:58 +02:00
parent f141f2fc46
commit 565727ac49
No known key found for this signature in database
GPG key ID: 645FA807E935D9D5

View file

@ -66,7 +66,7 @@ async def _make_local_call(cmd: str):
)
stdout, stderr = await proc.communicate()
if stderr != None:
if stderr != None and stderr != b"":
err = stderr.decode()
if "lightning-cli: Connecting to 'lightning-rpc': Permission denied" in err:
logging.critical(