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