From 0fd59bbe0c9538de9349d74668e8f033903a6321 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 18 Jun 2021 15:44:24 +0200 Subject: [PATCH] fixup! pyln: Add wrapper for the keysend command --- contrib/pyln-client/pyln/client/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-client/pyln/client/lightning.py b/contrib/pyln-client/pyln/client/lightning.py index 7dba4dfdf292..df0f17cf539d 100644 --- a/contrib/pyln-client/pyln/client/lightning.py +++ b/contrib/pyln-client/pyln/client/lightning.py @@ -1360,7 +1360,7 @@ def keysend(self, destination, msatoshi, label=None, maxfeepercent=None, """ """ - if not isinstance(extra_tlvs, dict): + if extra_tlvs is not None and not isinstance(extra_tlvs, dict): raise RpcError( "extra_tlvs is not a dictionary with integer keys and hexadecimal values" )