def warn_nonexistent_targets(targets, sections, log_printer):
 for target in targets:
  if (target not in sections):
   log_printer.warn("The requested section '{section}' is not existent. Thus it cannot be executed.".format(section=target))
 files_config_absent = warn_config_absent(sections, 'files', log_printer)
 bears_config_absent = warn_config_absent(sections, 'bears', log_printer)
 if (files_config_absent or bears_config_absent):
  raise SystemExit(2)

def warn_nonexistent_targets ( targets , sections , log_printer ) : for target in targets : if ( target not in sections ) : log_printer . warn ( "The requested section '{section}' is not existent. Thus it cannot be executed." . format ( section = target ) ) files_config_absent = warn_config_absent ( sections , 'files' , log_printer ) bears_config_absent = warn_config_absent ( sections , 'bears' , log_printer ) if ( files_config_absent or bears_config_absent ) : raise SystemExit ( 2 )
prints out a warning on the given log printer for all targets that are not existent within the given sections .