Skip to content

Commit 86a883b

Browse files
committed
check for boolean before checking for string-representation
1 parent be6c5ca commit 86a883b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/catmux/session.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030

3131
def check_boolean_field(boolean):
32+
if isinstance(boolean, bool):
33+
return boolean
3234
return boolean.lower() in ("yes", "true", "t", "1", True)
3335

3436

0 commit comments

Comments
 (0)