This commit is contained in:
cheese1
2018-09-02 20:38:54 +02:00
parent 6c34bc46e9
commit 694c17a40b
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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):