Skip to content

Commit 550bd57

Browse files
NewFutureCopilot
andauthored
Update ddns/config/cli.py
Co-authored-by: Copilot <[email protected]>
1 parent d036c3c commit 550bd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddns/config/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __call__(self, parser, namespace, values, option_string=None):
8282
if values and values != "true":
8383
config_path = str(values) # type: str
8484
else:
85-
config_path = getattr(namespace, "config") or "config.json" # type: str
85+
config_path = getattr(namespace, "config", None) or "config.json" # type: str
8686
config_path = config_path[0] if isinstance(config_path, list) else config_path
8787
if os_path.exists(config_path):
8888
sys.stderr.write("The default %s already exists!\n" % config_path)

0 commit comments

Comments
 (0)