瀏覽代碼

dont raise systemexit on succesful config

Nick Sweeting 4 年之前
父節點
當前提交
24f7dd9c05
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      archivebox/main.py

+ 1 - 1
archivebox/main.py

@@ -989,7 +989,7 @@ def config(config_options_str: Optional[str]=None,
             stderr()
             stderr('[X] These options failed to set (check for typos):', color='red')
             stderr('    {}'.format('\n    '.join(failed_options)))
-        raise SystemExit(bool(failed_options))
+            raise SystemExit(1)
     elif reset:
         stderr('[X] This command is not implemented yet.', color='red')
         stderr('    Please manually remove the relevant lines from your config file:')