10th Apr 2018, 8:39 PM
Duz
Duz - avatar
5 Answers
+ 2
in line 40 you write isschalt it's wrong write it like isSchalt.this is write because in fun. you defined like it.
11th Apr 2018, 2:28 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Maninder Singh look in line 17
11th Apr 2018, 5:39 AM
Duz
Duz - avatar
+ 1
in line 40 isschalt is under except condition.it will run only if try condition does not run, so that's why isschalt variable is under try condition. when except condition occur than isschalt is not defined because except condition only occur when try condition does not occur.
11th Apr 2018, 6:19 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
now I raise an Error after the exception
11th Apr 2018, 10:27 AM
Duz
Duz - avatar