def fail_acquire_settings(log_printer, settings_names_dict, section):
 if (not isinstance(settings_names_dict, dict)):
  raise TypeError('The settings_names_dict parameter has to be a dictionary.')
 required_settings = settings_names_dict.keys()
 if (len(required_settings) != 0):
  msg = 'During execution, we found that some required settings were not provided. They are:\n'
  for (name, setting) in settings_names_dict.items():
   msg += '{} (from {}) - {}'.format(name, setting[1], setting[0])
  log_printer.err(msg)
  raise AssertionError

def fail_acquire_settings ( log_printer , settings_names_dict , section ) : if ( not isinstance ( settings_names_dict , dict ) ) : raise TypeError ( 'The settings_names_dict parameter has to be a dictionary.' ) required_settings = settings_names_dict . keys ( ) if ( len ( required_settings ) != 0 ) : msg = 'During execution, we found that some required settings were not provided. They are:\n' for ( name , setting ) in settings_names_dict . items ( ) : msg += '{} (from {}) - {}' . format ( name , setting [ 1 ] , setting [ 0 ] ) log_printer . err ( msg ) raise AssertionError
this method throws an exception if any setting needs to be acquired .