Browse Source

Fix except/pass

pull/1780/head
tim watts 9 years ago
parent
commit
8267f2ba4a
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      example/python/tmsp/server.py

+ 2
- 3
example/python/tmsp/server.py View File

@ -184,7 +184,6 @@ class TMSPServer():
if (r == self.listener):
try:
self.handle_new_connection(r)
# undo adding to read list ...
except NameError as e:
print "Could not connect due to NameError:", e
@ -201,6 +200,6 @@ class TMSPServer():
for w in self.write_list:
try:
w.close()
except:
pass
except Exception as e:
print(e) # TODO: add logging
self.shutdown = True

Loading…
Cancel
Save