Amos Anderson added the comment:
Ah, thank you, Serhiy. I didn't know that, but I see that in the documentation:
https://docs.python.org/3/reference/compound_stmts.html#the-try-statement
But what about the 2nd case I presented where a `RuntimeError` was raised?
That's the actual case I'm
Amos Anderson added the comment:
If I do this instead:
```
try:
logger.info("raising exception")
raise ValueError("my exception1")
finally:
logger.info("stopped")
loop.stop()
await asyncio.sleep(0.5)
```
i.e., do a
New submission from Amos Anderson :
I found a case where an exception is lost if the loop is stopped in a `finally`.
```
import asyncio
import logging
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
async def method_that_raises():
loop = asyncio.get_event_loop
Amos Anderson nitroa...@gmail.com added the comment:
I believe I applied the patch correctly to my Python-2.6.5.tar.bz2, on my OSX
10.6.3 machine, configured with:
./configure --enable-framework=/Users/amos/triad/trunk/src/python
but make install now fails with this error at the end:
ln: /usr