semi stable

This commit is contained in:
mrT23
2023-08-20 15:01:06 +03:00
parent dee1f168f8
commit 6693aa3cbc
4 changed files with 115 additions and 3 deletions

View File

@ -253,8 +253,12 @@ def update_settings_from_args(args: List[str]) -> List[str]:
key, value = vals
key = key.strip().upper()
value = value.strip()
get_settings().set(key, value)
logging.info(f'Updated setting {key} to: "{value}"')
if key in get_settings():
get_settings().set(key, value)
logging.info(f'Updated setting {key} to: "{value}"')
else:
logging.info(f'No argument: {key}')
other_args.append(arg)
else:
other_args.append(arg)
return other_args