fix: added message when ValueError is raised for strtobool replacement
This commit is contained in:
parent
768d0e09b5
commit
bbffdcbd68
|
@ -18,7 +18,7 @@ def strtobool(query: str) -> bool:
|
|||
elif query.lower() in ["n", "no", "f", "false", "off", "0"]:
|
||||
return False
|
||||
else:
|
||||
raise ValueError
|
||||
raise ValueError(f'String value {query} cannot be converted to bool')
|
||||
|
||||
|
||||
def try_use_uvloop() -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user