We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c7f1c commit cd6b0a7Copy full SHA for cd6b0a7
test/test_led.py
@@ -25,7 +25,7 @@ def set_brightness(self, state, led, name):
25
def read_led_file(self, path):
26
try:
27
return open(path).read()
28
- except IOError, e:
+ except (IOError, e):
29
if e.errno == errno.ENOENT:
30
return -1
31
0 commit comments