mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
inverted error message
This commit is contained in:
parent
aaaabae394
commit
fddcdd1d5e
1 changed files with 2 additions and 2 deletions
|
@ -151,14 +151,14 @@ class OnboardingWindow(gtk.Window):
|
|||
capture = cv2.VideoCapture(device_path)
|
||||
is_open, frame = capture.read()
|
||||
if not is_open:
|
||||
device_rows.append([device_name, device_path, -9, _("No, not an infrared camera")])
|
||||
device_rows.append([device_name, device_path, -9, _("No, camera can't be opened")])
|
||||
continue
|
||||
|
||||
try:
|
||||
if not is_gray(frame):
|
||||
raise Exception()
|
||||
except Exception:
|
||||
device_rows.append([device_name, device_path, -5, _("No, camera can't be opened")])
|
||||
device_rows.append([device_name, device_path, -5, _("No, not an infrared camera")])
|
||||
capture.release()
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue