inverted error message

This commit is contained in:
EmixamPP 2021-11-11 10:23:34 +01:00
parent aaaabae394
commit fddcdd1d5e

View file

@ -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