From 17a8a53bbb8abc8b7c39ceceb6d44d5e0e195987 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 2 Jan 2016 02:41:28 -0500 Subject: [PATCH] Fixed config script. --- earwigbot/config/script.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/earwigbot/config/script.py b/earwigbot/config/script.py index d4669f7..b9f5185 100644 --- a/earwigbot/config/script.py +++ b/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: