Skip to content

Commit

Permalink
fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Sep 12, 2023
1 parent cf2cf51 commit fd8b9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def is_debug() -> bool:
def get_boolean(args: Any, key: str, default_value: bool) -> bool:
val = args.get(key, str(default_value))

if type(val) == bool:
if isinstance(val, bool):
return val

return val.lower() in ("1", "t", "true", "y", "yes")
Expand Down

0 comments on commit fd8b9be

Please sign in to comment.