Skip to content

Commit

Permalink
fix syntax typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kirisakow committed May 12, 2023
1 parent 499ac9a commit 9320628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcam_capture_QR_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def managed_videocapture(cam_indexes):
finally:
# Code to release resource, e.g.:
capture.release()
if ! cam_OK:
if not cam_OK:
raise IOError("Cannot open webcam")
sys.exit()

Expand Down

0 comments on commit 9320628

Please sign in to comment.