[issue35867] NameError is not caught at Task execution

2019-02-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I do not think this is a bug. Any exception that is raised inside a task will be in the .exception() method when the task is finished. Here you are running the task without waiting for finalization. For example, if you change: async def

[issue35867] NameError is not caught at Task execution

2019-02-18 Thread Emmanuel Arias
Emmanuel Arias added the comment: I test it and this have the same behavior on 3.7 and 3.8... I will work on this -- nosy: +eamanu versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue35867] NameError is not caught at Task execution

2019-01-31 Thread Sampsa Riikonen
New submission from Sampsa Riikonen : - Create a cofunction that raises an Exception or an Error - Schedule that cofunction as a task - Exceptions are raised when the task is executed OK - However, Errors (i.e. NameError, AssertionError, etc.) are raised only at task garbage collection..!