def get_site_status_msg(course_key):
 try:
  if (not GlobalStatusMessage.current().enabled):
   return None
  return GlobalStatusMessage.current().full_message(course_key)
 except:
  log.exception('Error while getting a status message.')
  return None

def get_site_status_msg ( course_key ) : try : if ( not GlobalStatusMessage . current ( ) . enabled ) : return None return GlobalStatusMessage . current ( ) . full_message ( course_key ) except : log . exception ( 'Error while getting a status message.' ) return None
pull the status message from the database .