File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def load(cli, caller_file):
5959 kwargs .pop (custom_attr , None )
6060 argp .add_argument (* args , ** kwargs )
6161 for key , val in vars (argp .parse_args ()).items ():
62- if getattr (cli .config , key , None ) is None :
62+ if not getattr (cli .config , key , '' ) :
6363 setattr (cli .config , key , val )
6464
6565 # Init all cli.config vals
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def load(cli, caller_file):
7171 kwargs .pop (custom_attr , None )
7272 argp .add_argument (* args , ** kwargs )
7373 for key , val in vars (argp .parse_args ()).items ():
74- if getattr (cli .config , key , None ) is None :
74+ if not getattr (cli .config , key , '' ) :
7575 setattr (cli .config , key , val )
7676
7777 # Init all cli.config vals
You can’t perform that action at this time.
0 commit comments