소스 검색

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:


불러오는 중...
취소
저장