diff --git a/hue_off.py b/hue_off.py index 5635b43..31943c3 100755 --- a/hue_off.py +++ b/hue_off.py @@ -101,6 +101,8 @@ def main(argv): off_lights.append(light) lights_file.write(light) lights_file.write("\n") + except IOError: + print "%s: File IO Error" % datestamp() except: # Bridge unavailable, Power failure? print "%s: Connection to Hue Bridge has failed... is the power out?" % datestamp()