From 694c17a40b3c2c6c22b9b8dd2fdbb487c2a58845 Mon Sep 17 00:00:00 2001 From: cheese1 Date: Sun, 2 Sep 2018 20:38:54 +0200 Subject: [PATCH 1/2] fix typo --- headphones/api.py | 2 +- lib/gntp/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/api.py b/headphones/api.py index a8b97c02..2ae742e3 100644 --- a/headphones/api.py +++ b/headphones/api.py @@ -82,7 +82,7 @@ class Api(object): def fetchData(self): if self.data == 'OK': - logger.info('Recieved API command: %s', self.cmd) + logger.info('Received API command: %s', self.cmd) methodToCall = getattr(self, "_" + self.cmd) methodToCall(**self.kwargs) if 'callback' not in self.kwargs: diff --git a/lib/gntp/core.py b/lib/gntp/core.py index 957b5270..d7588891 100644 --- a/lib/gntp/core.py +++ b/lib/gntp/core.py @@ -145,7 +145,7 @@ class _GNTPBase(object): pointerEnd = pointerStart + dataLength data = self.raw[pointerStart:pointerEnd] if not len(data) == dataLength: - raise errors.ParseError('INVALID_DATA_LENGTH Expected: %s Recieved %s' % (dataLength, len(data))) + raise errors.ParseError('INVALID_DATA_LENGTH Expected: %s Received %s' % (dataLength, len(data))) return data def _validate_password(self, password): From aed2e6398407f56653d869cbe5d4009274d44771 Mon Sep 17 00:00:00 2001 From: cheese1 Date: Mon, 3 Sep 2018 11:31:39 +0200 Subject: [PATCH 2/2] fix missing space --- headphones/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/request.py b/headphones/request.py index a4a9b128..dac4ffb4 100644 --- a/headphones/request.py +++ b/headphones/request.py @@ -93,7 +93,7 @@ def request_response(url, method="get", auto_raise=True, if kwargs["verify"]: logger.error( "Unable to connect to remote host because of a SSL error. " - "It is likely that your system cannot verify the validity" + "It is likely that your system cannot verify the validity " "of the certificate. The remote certificate is either " "self-signed, or the remote server uses SNI. See the wiki for " "more information on this topic.")