Skip to content

Commit

Permalink
fixup! pyln: Add wrapper for the keysend command
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jun 18, 2021
1 parent 0c39442 commit 0fd59bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/pyln-client/pyln/client/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 0fd59bb

Please sign in to comment.