osc: fix exception error in logger

This commit is contained in:
Mathieu Virbel 2012-10-21 21:14:35 +02:00
parent 1099038384
commit 05f3c028e6
1 changed files with 1 additions and 3 deletions

View File

@ -210,7 +210,6 @@ class OSCServer(_OSCServer):
if error == errno.EADDRINUSE:
Logger.error('OSC: Address %s:%i already in use, retry in 2 second' % (self.ipAddr, self.port))
else:
Logger.exception(e)
self.haveSocket = False
# sleep 2 second before retry
@ -225,8 +224,7 @@ class OSCServer(_OSCServer):
except Exception, e:
if type(e) == socket.timeout:
continue
Logger.error('OSC: Error in Tuio recv()')
Logger.exception(e)
Logger.exception('OSC: Error in Tuio recv()')
return 'no data arrived'
def listen(ipAddr='127.0.0.1', port=9001):