mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
rename confusingly named function
This commit is contained in:
parent
fe03ab66e9
commit
7e674af3e2
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ def scope_config(config, journal_name):
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
def verify_config(config):
|
def verify_config_colors(config):
|
||||||
"""
|
"""
|
||||||
Ensures the keys set for colors are valid colorama.Fore attributes, or "None"
|
Ensures the keys set for colors are valid colorama.Fore attributes, or "None"
|
||||||
:return: True if all keys are set correctly, False otherwise
|
:return: True if all keys are set correctly, False otherwise
|
||||||
|
|
|
@ -10,7 +10,7 @@ import yaml
|
||||||
|
|
||||||
from . import __version__
|
from . import __version__
|
||||||
from .config import load_config
|
from .config import load_config
|
||||||
from .config import verify_config
|
from .config import verify_config_colors
|
||||||
from .exception import UserAbort
|
from .exception import UserAbort
|
||||||
from .os_compat import on_windows
|
from .os_compat import on_windows
|
||||||
from .prompt import yesno
|
from .prompt import yesno
|
||||||
|
@ -108,7 +108,7 @@ def load_or_install_jrnl():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
upgrade_config(config)
|
upgrade_config(config)
|
||||||
verify_config(config)
|
verify_config_colors(config)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.debug("Configuration file not found, installing jrnl...")
|
logging.debug("Configuration file not found, installing jrnl...")
|
||||||
|
|
Loading…
Add table
Reference in a new issue