Skip to content

Commit

Permalink
[bugfix] Fix crash when displaying error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed Jul 30, 2022
1 parent 0cebf05 commit 5ee0d9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dvr_scan/cli/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ def run_dvr_scan():
'Method %s is not available. To enable it, install a version of'
' the OpenCV package `cv2` that includes support for it%s.', bg_subtractor.name,
', or download the experimental CUDA-enabled build: https://dvr-scan.readthedocs.io/'
if 'CUDA' in bg_subtractor.name() and os.name == 'nt' else '')

if 'CUDA' in bg_subtractor.name and os.name == 'nt' else '')
return EXIT_ERROR

try:
Expand Down

0 comments on commit 5ee0d9c

Please sign in to comment.