<p dir="ltr">Exceot musi byt na stejne urovni jako try</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 26, 2016 21:55, "Aleš Hrubý" <<a href="mailto:ales-hruby@email.cz">ales-hruby@email.cz</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">oprava<br>
#!/usr/bin/env python<br>
<br>
import RPi.GPIO as GPIO<br>
import time<br>
<br>
promena=3<br>
GPIO.setmode(GPIO.BCM)<br>
GPIO.setup(4, GPIO.OUT)<br>
i=0<br>
while True:<br>
<br>
<br>
time.sleep(1)<br>
<br>
try:<br>
if i == 1:<br>
GPIO.output(4, False)<br>
i=0<br>
else:<br>
GPIO.output(4, True)<br>
i=1<br>
except:<br>
pass<br>
<br>
./test.py<br>
File "./test.py", line 22<br>
except:<br>
^<br>
SyntaxError: invalid syntax<br>
<br>
<br>
_______________________________________________<br>
Python mailing list<br>
<a href="mailto:python@py.cz">python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" rel="noreferrer" target="_blank">http://www.py.cz/mailman/listinfo/python</a><br>
<br>
Visit: <a href="http://www.py.cz" rel="noreferrer" target="_blank">http://www.py.cz</a><br>
</blockquote></div></div>