69
76
logging.error("Year must be numeric")
76
82
# Get all subjects this user is enrolled in, and add them to the DB if
77
83
# they match one of our local subject codes
79
85
logging.info("Enrolled user %s in %d subject%s." % (user.login, res,
80
86
'' if res == 1 else 's'))
81
87
except Exception, message:
82
88
logging.warning(str(message))
86
91
logging.info("enrolment completed successfully")