fixed error message raising an error of its own
This commit is contained in:
@@ -56,13 +56,9 @@ class MultiWorldParser(object):
|
|||||||
try:
|
try:
|
||||||
execfile(settings_file, rendermodes.__dict__, self._config_state)
|
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)
|
logging.exception("Error parsing %s. Please check the trackback for more info" % settings_file)
|
||||||
sys.exit(1)
|
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):
|
def get_validated_config(self):
|
||||||
"""Validate and return the configuration"""
|
"""Validate and return the configuration"""
|
||||||
|
|||||||
Reference in New Issue
Block a user