fixed try catch around site_courses assignment