浏览代码

Fixed config script.

tags/v0.3
Ben Kurtovic 8 年前
父节点
当前提交
17a8a53bbb
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      earwigbot/config/script.py

+ 4
- 0
earwigbot/config/script.py 查看文件

@@ -442,6 +442,10 @@ class ConfigScript(object):
"""Make a new config file based on the user's input."""
try:
makedirs(path.dirname(self.config.path))
except OSError as exc:
if exc.errno != 17:
raise
try:
open(self.config.path, "w").close()
chmod(self.config.path, stat.S_IRUSR|stat.S_IWUSR)
except IOError:


正在加载...
取消
保存