Message294691
Some further experiements:
Replacing the `exec(f.read(), env)` line by
```
code = compile(f.read(), 'script', 'exec')
exec(code, env)
```
exhibits the same behaviour. If I remove the `try...except`, the correct
(full) traceback is printed out. So it looks like the issue is with the traceback propagation through exception handlers when the error happens during parsing. |
|
Date |
User |
Action |
Args |
2017-05-29 12:18:24 | stefan | set | recipients:
+ stefan, brett.cannon, ncoghlan, benjamin.peterson, yselivanov |
2017-05-29 12:18:24 | stefan | set | messageid: <1496060304.88.0.0534441608916.issue30496@psf.upfronthosting.co.za> |
2017-05-29 12:18:24 | stefan | link | issue30496 messages |
2017-05-29 12:18:24 | stefan | create | |
|