Error: UnboundLocalError: local variable 'e' referenced before assignment
lacking "e" in error treatment.