Skip to content

Commit d2d74c8

Browse files
committed
🐛 Fix error handling in OS config test, Python 2
FileNotFoundError is not available in Python 2.
1 parent 9c4fc19 commit d2d74c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

octoprint_ws281x_led_status/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def validate(self, cmd):
5757
}
5858
try:
5959
result = validators[cmd]()
60-
except FileNotFoundError:
60+
except OSError:
6161
self._logger.warning("Tried to validate {} but files were missing")
6262
result = {"check": cmd, "passed": False, "reason": "missing"}
6363
except Exception as e:

0 commit comments

Comments
 (0)