[jhbuild] [bot] check for slaves.csv existence before accessing it
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] [bot] check for slaves.csv existence before accessing it
- Date: Tue, 5 May 2009 17:16:53 -0400 (EDT)
commit 5bd919504e4a29f84457fdd017aab58fc099ceeb
Author: Frederic Peters <fpeters 0d be>
Date: Tue May 5 19:22:55 2009 +0200
[bot] check for slaves.csv existence before accessing it
---
jhbuild/commands/bot.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/jhbuild/commands/bot.py b/jhbuild/commands/bot.py
index 9fd9e4f..b3f82d2 100644
--- a/jhbuild/commands/bot.py
+++ b/jhbuild/commands/bot.py
@@ -332,8 +332,8 @@ class cmd_bot(Command):
# (recognized build slave options are max_build and
# missing_timeout)
config['slaves'] = []
- if os.path.exists(slaves_dir):
- slaves_csv_file = os.path.join(slaves_dir, 'slaves.csv')
+ slaves_csv_file = os.path.join(slaves_dir, 'slaves.csv')
+ if os.path.exists(slaves_csv_file):
for x in csv.reader(file(slaves_csv_file)):
if not x or x[0].startswith('#'):
continue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]