Commit b72100fb authored by Christophe Benz's avatar Christophe Benz

Typo

parent 08af4564
......@@ -137,7 +137,7 @@ def main():
print('errors: {}'.format(
json.dumps(
[
(error, definition_by_error_name.get(error, {}).get('description', 'No description found!'))
(error, definition_by_error_name.get(error, {}).get('description', 'No error description found'))
for error in unique(errors) # Keep order
],
indent=4,
......@@ -151,12 +151,16 @@ def main():
for calculee_variable_name in args.calculee_variables:
sanitized_calculee_variable = core.sanitized_variable_name(calculee_variable_name)
# requested_formula_result = formulas_functions[sanitized_calculee_variable]()
# print('{} = {} ({})'.format(calculee_variable_name, requested_formula_result,
# core.get_variable_description(calculee_variable_name)))
try:
requested_formula_result = formulas_functions[sanitized_calculee_variable]()
except:
log.exception('Error while calculating {}'.format(sanitized_calculee_variable))
print('{} = {} ({})'.format(calculee_variable_name, requested_formula_result,
core.get_variable_description(calculee_variable_name)))
else:
print('{} = {} ({})'.format(calculee_variable_name, requested_formula_result,
core.get_variable_description(calculee_variable_name)))
return 0
......
......@@ -196,7 +196,7 @@ def get_errors(base_variables, saisie_variables):
assert not is_double_defined_in_preferred_application, (variable_name, visited_applications)
log.debug(
'Variable "{}" already visited and had another application, '
'but this one of "{}" is prefered => keep the source ({}) '
'but this one of "{}" is preferred => keep the source ({}) '
'and the applications({}) of this one.'.format(
variable_name, preferred_application, source, applications))
visited_applications_by_variable_name[variable_name] = applications
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment