Skip to content

Commit e3ff173

Browse files
committed
fix: load config after copying example instead of returning empty
1 parent 5e22809 commit e3ff173

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

commands/nem_relay.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ def _load_config():
2929
if not CONFIG_FILE.exists():
3030
if CONFIG_EXAMPLE.exists():
3131
shutil.copy(CONFIG_EXAMPLE, CONFIG_FILE)
32-
relay_logger.warning("No config at %s — relay will be disabled.", CONFIG_FILE)
33-
return {}
32+
relay_logger.info("Created %s from example. Please fill in the webhook URL.", CONFIG_FILE)
33+
else:
34+
relay_logger.warning("No config at %s — relay will be disabled.", CONFIG_FILE)
35+
return {}
3436

3537
with open(CONFIG_FILE) as f:
3638
return yaml.safe_load(f) or {}

0 commit comments

Comments
 (0)