def get_action_by_ref(ref):
 try:
  return Action.get_by_ref(ref)
 except ValueError as e:
  LOG.debug(('Database lookup for ref="%s" resulted ' + 'in exception : %s.'), ref, e, exc_info=True)
  return None

def get_action_by_ref ( ref ) : try : return Action . get_by_ref ( ref ) except ValueError as e : LOG . debug ( ( 'Database lookup for ref="%s" resulted ' + 'in exception : %s.' ) , ref , e , exc_info = True ) return None
returns the action object from db given a string ref .