Maximilian Roos added the comment:
I see @eryksun — by convention `onerror` is always called in an except block,
and so having a bare `raise` outside of an explicit except block is OK.
Thanks for clarifying. I'll close this.
--
resolution: -> not a bug
stage: -> reso
New submission from Maximilian Roos :
The raise expression
[here](https://github.com/python/cpython/blob/ad442a674ca443feec43a88a2d3671784712e550/Lib/tempfile.py#L826)
isn't valid, since it isn't in an except block.
It'll still raise, given it's invalid, though not w