mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Exit program with message if config is empty.
This commit is contained in:
parent
420a9fc999
commit
0dd7ec798c
1 changed files with 2 additions and 4 deletions
|
@ -76,10 +76,8 @@ def load_or_install_jrnl(alt_config_path):
|
||||||
config = load_config(config_path)
|
config = load_config(config_path)
|
||||||
|
|
||||||
if config is None:
|
if config is None:
|
||||||
print(
|
print("Unable to parse config file", file=sys.stderr)
|
||||||
f"Configuration file {config_path} is empty, now using default config"
|
sys.exit()
|
||||||
)
|
|
||||||
config = get_default_config()
|
|
||||||
|
|
||||||
if is_old_version(config_path):
|
if is_old_version(config_path):
|
||||||
from jrnl import upgrade
|
from jrnl import upgrade
|
||||||
|
|
Loading…
Add table
Reference in a new issue