On Dec 1, 12:37 am, MK2 <[email protected]> wrote: > Some problem when an exception raise, example: > > conn = somepool.get() > try: > # do some operations > yield conn.execute() # when here `conn.execute()` inside raise an > exception. > finally: > somepool.put(conn) # this logic code wouldn't execute forever. > > How to let `try ... finally ... ` work as normal?
Any more details for us, or more of the example code? Like, what is execute? A client method? This certainly could be a tricky bug, but I'm afraid I'll need more details to test it for sure. - jamwt
