1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Changed the condition for the perception of the str2bool

This commit is contained in:
Valery Sinelnikov 2022-07-08 16:58:51 +04:00
parent 2da7758621
commit 889bf5124a

View File

@ -41,7 +41,7 @@ def remove_dir_tree(path, delete_files=False, delete_folder=False, delete_sub_fo
def str2bool(boolstr):
if boolstr.lower() in ['true', 'yes', '1']:
if boolstr and boolstr.lower() in ['true', 'yes', '1']:
return True
return False