Resolve "exception should be handled properly" Closes #321 See merge request NCER-PD/scheduling-system!227