Update client.py

This commit is contained in:
wannaphongcom
2015-10-16 13:10:35 +07:00
parent ace4c19a9e
commit dfe2108792

View File

@@ -65,7 +65,7 @@ class Client(object):
self.threads = [] self.threads = []
self.threads = [] self.threads = []
#self.data = data
def _console(self, msg): def _console(self, msg):
if self.debug: print(msg) if self.debug: print(msg)
@@ -155,7 +155,7 @@ class Client(object):
for entry in j['payload']['entries']: for entry in j['payload']['entries']:
if entry['type'] == 'user': if entry['type'] == 'user':
users.append(User(entry)) users.append(User(entry))
return users return users # have bug TypeError: __repr__ returned non-string (type bytes)
def sendMessage(self, message, thread_id): def sendMessage(self, message, thread_id):
timestamp = now() timestamp = now()