0

fixed error message raising an error of its own

This commit is contained in:
Andrew Brown
2012-02-12 16:11:06 -05:00
parent adc9151f44
commit 5e2956f101

View File

@@ -56,13 +56,9 @@ class MultiWorldParser(object):
try:
execfile(settings_file, rendermodes.__dict__, self._config_state)
except NameError, ex:
except (NameError, SyntaxError), ex:
logging.exception("Error parsing %s. Please check the trackback for more info" % settings_file)
sys.exit(1)
except SyntaxError, ex:
logging.exception("Error parsing %s. Please check the trackback for more info" % self.settings_file)
sys.exit(1)
def get_validated_config(self):
"""Validate and return the configuration"""