Skip to content

Commit cd48fdd

Browse files
committed
Fixing settings readings
1 parent d664246 commit cd48fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FaceDetect/facedetect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, settings=None):
7979
val = val.lower().strip() if type(val) is str else val
8080

8181
# Set the settings to the sanitized keys and values
82-
self.settings[sanitized_setting] = val if val else self.settings[sanitized_setting]
82+
self.settings[sanitized_setting] = val if type(val) is bool or val else self.settings[sanitized_setting]
8383

8484
####################################################
8585
# Public methods for face detection and recognition

0 commit comments

Comments
 (0)