From d27da4d1525e60cb28d715180e70f500abda3e4e Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 26 Jun 2020 13:20:35 +0200 Subject: [PATCH] pyln: Fix two formatting string not matching parameters --- contrib/pyln-client/pyln/client/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/pyln-client/pyln/client/plugin.py b/contrib/pyln-client/pyln/client/plugin.py index 2d780b938..6d7586948 100644 --- a/contrib/pyln-client/pyln/client/plugin.py +++ b/contrib/pyln-client/pyln/client/plugin.py @@ -67,7 +67,7 @@ class Request(dict): if self.state != RequestState.PENDING: raise ValueError( "Cannot set the result of a request that is not pending, " - "current state is {state}".format(self.state)) + "current state is {state}".format(state=self.state)) self.result = result self._write_result({ 'jsonrpc': '2.0', @@ -79,7 +79,7 @@ class Request(dict): if self.state != RequestState.PENDING: raise ValueError( "Cannot set the exception of a request that is not pending, " - "current state is {state}".format(self.state)) + "current state is {state}".format(state=self.state)) self.exc = exc self._write_result({ 'jsonrpc': '2.0', @@ -338,7 +338,7 @@ class Plugin(object): """ if name in self.methods: raise ValueError( - "Method {} was already registered".format(name, self.methods[name]) + "Method {name} was already registered".format(name=name) ) # Make sure the hook callback has a **kwargs argument so that it