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