mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
fix typo
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ class Api(object):
|
|||||||
def fetchData(self):
|
def fetchData(self):
|
||||||
|
|
||||||
if self.data == 'OK':
|
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 = getattr(self, "_" + self.cmd)
|
||||||
methodToCall(**self.kwargs)
|
methodToCall(**self.kwargs)
|
||||||
if 'callback' not in self.kwargs:
|
if 'callback' not in self.kwargs:
|
||||||
|
|||||||
+1
-1
@@ -145,7 +145,7 @@ class _GNTPBase(object):
|
|||||||
pointerEnd = pointerStart + dataLength
|
pointerEnd = pointerStart + dataLength
|
||||||
data = self.raw[pointerStart:pointerEnd]
|
data = self.raw[pointerStart:pointerEnd]
|
||||||
if not len(data) == dataLength:
|
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
|
return data
|
||||||
|
|
||||||
def _validate_password(self, password):
|
def _validate_password(self, password):
|
||||||
|
|||||||
Reference in New Issue
Block a user