Skip to content

Commit

Permalink
Merge pull request #215 from travishsu/patch-1
Browse files Browse the repository at this point in the history
Fixbug: use config file if arguments return None
  • Loading branch information
Evolution0 authored Jan 7, 2024
2 parents 6389e48 + 9fb7415 commit fcd4f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bandcamp_dl/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ def init_config(arguments) -> json or dict:
with open(session_file, "w") as f:
f.write("".join(str(arguments).split('\n')))

config = {key: arguments.get(key, config[key]) for key in config}
config = {key: config[key] if arguments.get(key, config[key]) is None else arguments.get(key, config[key]) for key in config}

return config

0 comments on commit fcd4f67

Please sign in to comment.