def get_runnertype_by_id(runnertype_id):
 try:
  runnertype = RunnerType.get_by_id(runnertype_id)
 except (ValueError, ValidationError) as e:
  LOG.warning('Database lookup for runnertype with id="%s" resulted in exception: %s', runnertype_id, e)
  raise StackStormDBObjectNotFoundError(('Unable to find runnertype with id="%s"' % runnertype_id))
 return runnertype

def get_runnertype_by_id ( runnertype_id ) : try : runnertype = RunnerType . get_by_id ( runnertype_id ) except ( ValueError , ValidationError ) as e : LOG . warning ( 'Database lookup for runnertype with id="%s" resulted in exception: %s' , runnertype_id , e ) raise StackStormDBObjectNotFoundError ( ( 'Unable to find runnertype with id="%s"' % runnertype_id ) ) return runnertype
get runnertype by id .