1
0

lightning: assert result type, add invoice qr dialog

This commit is contained in:
Janus
2018-03-28 17:37:17 +02:00
committed by ThomasV
parent afa5797099
commit 1a05838ef2
2 changed files with 6 additions and 0 deletions

View File

@@ -625,6 +625,7 @@ class LightningRPC:
raise
toprint = result
try:
assert type(result) is not str, result
assert result["stderr"] == "" and result["returncode"] == 0, "LightningRPC detected error: " + result["stderr"]
toprint = json.loads(result["stdout"])
for i in self.subscribers: applyMethodName(i)(toprint)