Temporarily removed error handling because OSError is too broad
This commit is contained in:
parent
8b3382d4e5
commit
6510213cfd
1 changed files with 3 additions and 7 deletions
|
@ -47,16 +47,12 @@ class WallabyClient:
|
|||
|
||||
|
||||
def start(self):
|
||||
print(os.curdir)
|
||||
self.sock.send("w", "set_type")
|
||||
self.sync.start()
|
||||
while 1 and self.connected:
|
||||
try:
|
||||
data = self.sock.recv()
|
||||
if data[1] in self.routes:
|
||||
self.routes[data[1]].run(data[0], self)
|
||||
except (OSError, socket.error):
|
||||
self.connected = False
|
||||
data = self.sock.recv()
|
||||
if data[1] in self.routes:
|
||||
self.routes[data[1]].run(data[0], self)
|
||||
|
||||
|
||||
def stop(self):
|
||||
|
|
Reference in a new issue