Skip to content

Commit cd6b0a7

Browse files
committed
fix except syntax for Python 3
Signed-off-by: Drew Fustini <drew@pdp7.com>
1 parent a0c7f1c commit cd6b0a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_led.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def set_brightness(self, state, led, name):
2525
def read_led_file(self, path):
2626
try:
2727
return open(path).read()
28-
except IOError, e:
28+
except (IOError, e):
2929
if e.errno == errno.ENOENT:
3030
return -1
3131

0 commit comments

Comments
 (0)