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