C0103 fixes 1

this part contains the changes on local variables
Ah ok. I chose err because it is a RuntimeError, but I don't mind using exc everywhere. Good, I will not change anything.