0

now fails correctly if --settings is given but file does not exist

This commit is contained in:
Aaron Griffith
2011-06-22 14:19:50 -04:00
parent 6aab671857
commit aed6938d22

View File

@@ -81,6 +81,10 @@ class ConfigOptionParser(object):
if os.path.exists(self.configFile):
execfile(self.configFile, g, l)
elif options.config_file:
# file does not exist, but *was* specified on the command line
logging.error("Could not open %s." % self.configFile)
sys.exit(1)
except NameError, ex:
import traceback
traceback.print_exc()