Message 394903 - Python tracker (original) (raw)
Following a discussion on PR24976 we opted for
"cannot access local variable 'x' where it is not associated with a value"
This is because binding it not always related to assignment.
I don't know whether this completely resolves this issue, or whether there is still something to change around the None-setting of except targets.