Skip to content

Commit 7a84796

Browse files
committed
Moved one more line into try statement
1 parent 2123490 commit 7a84796

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/tcs34725_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
try:
2222
temp = sensor.temperature
2323
lux = sensor.lux
24+
print('Temperature: {0}K Lux: {1}'.format(temp, lux))
2425
except ZeroDivisionError:
2526
print("No light to measure")
26-
print('Temperature: {0}K Lux: {1}'.format(temp, lux))
27+
2728
# Delay for a second and repeat.
2829
time.sleep(1.0)

0 commit comments

Comments
 (0)