We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a660c2 commit b652c0fCopy full SHA for b652c0f
1 file changed
contest/hw/machine_control.py
@@ -189,7 +189,10 @@ def get_nic_info():
189
"ifname, ip4addr, ip6addr FROM nic_info"
190
)
191
rows = cur.fetchall()
192
- finally:
+ except Exception:
193
+ db_pool.putconn(conn, close=True)
194
+ raise
195
+ else:
196
db_pool.putconn(conn)
197
198
result = []
@@ -232,7 +235,10 @@ def get_sol_logs():
232
235
(machine_id, start_id, limit)
233
236
234
237
238
239
240
241
242
243
244
last_id = rows[-1][0] if rows else start_id
0 commit comments