0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

Merge pull request #610 from EmixamPP/beta

inverted error message
This commit is contained in:
boltgolt 2021-11-12 11:28:53 +01:00 committed by GitHub
commit 354c3d1281
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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