Univention Bugzilla – Attachment #7870: patch for bug #41994
return False
try:
(self.schools or [school]).remove(school)
except IndexError:
except (ValueError, IndexError):
logger.warning('User is not part of school %r. Not removing.', school)
if not self.schools: