We should be logging these exceptions: use `logger.exception(msg)`, where message includes the arguments to this function (course id, item id, and task type).