mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-15 06:11:20 +00:00
Fix except/pass
This commit is contained in:
@ -184,7 +184,6 @@ class TMSPServer():
|
|||||||
if (r == self.listener):
|
if (r == self.listener):
|
||||||
try:
|
try:
|
||||||
self.handle_new_connection(r)
|
self.handle_new_connection(r)
|
||||||
|
|
||||||
# undo adding to read list ...
|
# undo adding to read list ...
|
||||||
except NameError as e:
|
except NameError as e:
|
||||||
print "Could not connect due to NameError:", e
|
print "Could not connect due to NameError:", e
|
||||||
@ -201,6 +200,6 @@ class TMSPServer():
|
|||||||
for w in self.write_list:
|
for w in self.write_list:
|
||||||
try:
|
try:
|
||||||
w.close()
|
w.close()
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
print(e) # TODO: add logging
|
||||||
self.shutdown = True
|
self.shutdown = True
|
||||||
|
Reference in New Issue
Block a user