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)
|
capture = cv2.VideoCapture(device_path)
|
||||||
is_open, frame = capture.read()
|
is_open, frame = capture.read()
|
||||||
if not is_open:
|
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
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if not is_gray(frame):
|
if not is_gray(frame):
|
||||||
raise Exception()
|
raise Exception()
|
||||||
except 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()
|
capture.release()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue