def get_trigger_db_by_id(id):
 try:
  return Trigger.get_by_id(id)
 except StackStormDBObjectNotFoundError as e:
  LOG.debug('Database lookup for id="%s" resulted in exception : %s.', id, e, exc_info=True)
 return None

def get_trigger_db_by_id ( id ) : try : return Trigger . get_by_id ( id ) except StackStormDBObjectNotFoundError as e : LOG . debug ( 'Database lookup for id="%s" resulted in exception : %s.' , id , e , exc_info = True ) return None
returns the trigger object from db given a trigger id .