~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/pulldown_subj/__init__.py

MergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from subjecterror import SubjectError
34
34
import ivle.conf
35
35
 
36
 
from ivle.database import Subject, Offering, Semester, AlreadyEnrolledError
 
36
from ivle.database import Subject, Offering, Semester
37
37
 
38
38
def get_subjects(login):
39
39
    """
79
79
        if not offering:
80
80
            continue
81
81
 
82
 
        try:
83
 
            offering.enrol(user)
84
 
            count += 1
85
 
        except AlreadyEnrolledError:
86
 
            pass
 
82
        offering.enrol(user)
 
83
        count += 1
87
84
    return count
88
85
 
89
86
# Allow imports to get files from this directory.