def _key_error(neighbors, strict):
 if strict:
  raise ValueError((("no thermodynamic data for neighbors '" + neighbors) + "' available"))
 else:
  warnings.warn((("no themodynamic data for neighbors '" + neighbors) + "' available. Calculation will be wrong"), BiopythonWarning)
  return

def _key_error ( neighbors , strict ) : if strict : raise ValueError ( ( ( "no thermodynamic data for neighbors '" + neighbors ) + "' available" ) ) else : warnings . warn ( ( ( "no themodynamic data for neighbors '" + neighbors ) + "' available. Calculation will be wrong" ) , BiopythonWarning ) return
throw an error or a warning if there is no data for the neighbors .