Skip to content

Commit

Permalink
Fix KeyError loading config
Browse files Browse the repository at this point in the history
If config was out of date was throwing keyerror
  • Loading branch information
ThioJoe committed Mar 26, 2023
1 parent 9af19a6 commit ee86c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scripts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

TOKEN_FILE_NAME = 'token.pickle'
TOKEN_ENCRYPTED_NAME = 'token.pickle.encrypted'
encrypt_config = load_config_file(onlyGetSettings=True)['encrypt_token_file']
from YTSpammerPurge import configVersion
encrypt_config = load_config_file(onlyGetSettings=True, configVersion=configVersion)['encrypt_token_file']

# Encryption Settings
SALT_BYTES = 64
Expand Down
1 change: 1 addition & 0 deletions Scripts/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ def default_config_path(relative_path):

# Skip some prompts if only getting settings, like for auth script
if onlyGetSettings == True:
configDict = check_update_config_file(configVersion, configDict, currentConfigFileNameWithPath)
return configDict

# Prevent prompt about config file if it's the default config file
Expand Down

0 comments on commit ee86c59

Please sign in to comment.