Commit e80498ad authored by Stefan H. Holek's avatar Stefan H. Holek

Remove evil bare excepts around connection.close().

parent 9e96d4c6
......@@ -173,15 +173,13 @@ class ConnectionRegistry:
self._conns.append(conn)
def close(self, conn):
try: self._conns.remove(conn)
except: pass
try: conn.close()
except: pass
if self.contains(conn):
self._conns.remove(conn)
conn.close()
def closeAll(self):
for conn in self._conns:
try: conn.close()
except: pass
conn.close()
self._conns = []
def __len__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment