mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +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)
|
||||
|
||||
if config is None:
|
||||
print(
|
||||
f"Configuration file {config_path} is empty, now using default config"
|
||||
)
|
||||
config = get_default_config()
|
||||
print("Unable to parse config file", file=sys.stderr)
|
||||
sys.exit()
|
||||
|
||||
if is_old_version(config_path):
|
||||
from jrnl import upgrade
|
||||
|
|
Loading…
Add table
Reference in a new issue