diff options
-rw-r--r-- | tools/ValidateBcfg2Repo | 4 |
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 |