We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d036c3c commit 550bd57Copy full SHA for 550bd57
ddns/config/cli.py
@@ -82,7 +82,7 @@ def __call__(self, parser, namespace, values, option_string=None):
82
if values and values != "true":
83
config_path = str(values) # type: str
84
else:
85
- config_path = getattr(namespace, "config") or "config.json" # type: str
+ config_path = getattr(namespace, "config", None) or "config.json" # type: str
86
config_path = config_path[0] if isinstance(config_path, list) else config_path
87
if os_path.exists(config_path):
88
sys.stderr.write("The default %s already exists!\n" % config_path)
0 commit comments