View | Details | Raw Unified | Return to bug 41994
Collapse All | Expand All

(-)a/ucs-school-lib/python/models/user.py (-1 / +1 lines)
 Lines 398-404   class User(UCSSchoolHelperAbstractClass): Link Here 
398
			return False
398
			return False
399
		try:
399
		try:
400
			(self.schools or [school]).remove(school)
400
			(self.schools or [school]).remove(school)
401
		except IndexError:
401
		except (ValueError, IndexError):
402
			logger.warning('User is not part of school %r. Not removing.', school)
402
			logger.warning('User is not part of school %r. Not removing.', school)
403
			return False
403
			return False
404
		if not self.schools:
404
		if not self.schools:

Return to bug 41994