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