Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/config.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-27 18:46:24 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-27 18:46:24 (GMT)
commitcdd95b53176e584a1e1e51117007bc208cb5d259 (patch)
tree118963b2978c5c2e92934ab7f5c1ee8eb598174d /devbot/config.py
parent6565a1750c030342f8573b7b3d244372efc6b608 (diff)
Display error messages when the source dir is invalid
Diffstat (limited to 'devbot/config.py')
-rw-r--r--devbot/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/devbot/config.py b/devbot/config.py
index 2b748e6..d5e1a74 100644
--- a/devbot/config.py
+++ b/devbot/config.py
@@ -47,6 +47,9 @@ class Module:
return os.path.join(get_build_dir(), self.name)
def get_commit_id(self):
+ if not os.path.exists(self.get_source_dir()):
+ return None
+
return utils.get_commit_id(self.get_source_dir())
def _ensure_dir(dir):