1
0

minor fixes

This commit is contained in:
ThomasV
2012-03-28 14:22:46 +02:00
parent 29072ef1ad
commit fe142452e2
2 changed files with 7 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ class Interface:
try:
method = c['method']
except:
print "error"
print "error", c
return
if error:
@@ -226,7 +226,8 @@ class HttpInterface(PollingInterface):
thread.start_new_thread(self.poll_thread, (15,))
def poll(self):
self.send( [] )
if self.session_id:
self.send( [] )
def send(self, messages):
import urllib2, json, time, cookielib