fix: sbool converting int stored as string

This commit is contained in:
saxenabhishek 2022-01-25 03:07:34 +05:30
parent 429f839ea3
commit efd5c197cb

View file

@ -750,7 +750,7 @@ def sbool(x: str) -> Union[bool, Any]:
return True
elif val in ('false', '0'):
return False
return bool(x)
return x
except Exception:
return x