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

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