summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-07-12 20:17:21 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-07-12 20:17:21 +0000
commitf163f81d7d0316821c5b5832a0b9cfdf0035b0a6 (patch)
tree08f873e21f1cfb0757733b2c9fb2cc10da092d99
parentf4b20830a8f84c70b23d360b5488643da2b5d3a0 (diff)
downloadbcfg2-f163f81d7d0316821c5b5832a0b9cfdf0035b0a6.tar.gz
bcfg2-f163f81d7d0316821c5b5832a0b9cfdf0035b0a6.tar.bz2
bcfg2-f163f81d7d0316821c5b5832a0b9cfdf0035b0a6.zip
fix tb
(Logical change 1.248) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1030 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--tools/ValidateBcfg2Repo4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ValidateBcfg2Repo b/tools/ValidateBcfg2Repo
index 33833bea2..9ebdac59c 100644
--- a/tools/ValidateBcfg2Repo
+++ b/tools/ValidateBcfg2Repo
@@ -3,14 +3,14 @@
from glob import glob
from sys import argv, exit
from validate import validate, ValidationException
-from ConfigParser import ConfigParser, NoOptionError
+from ConfigParser import ConfigParser
if __name__ == '__main__':
cf = ConfigParser()
cf.read(['/etc/bcfgd.conf'])
try:
repo = cf.get('server', 'repository')
- except NoOptionError:
+ except:
if len(argv) == 1:
print "Usage: validate_repo <repo directory>"
raise SystemExit, 1