Univention Bugzilla – Bug 44546
ValueError: list.remove(x): x not in list
Last modified: 2017-06-23 13:32:23 CEST
Please fix this bug for UCS@school 4.2, too. +++ This bug was initially created as a clone of Bug #41994 +++ Reported twice: Version: 4.1-3 errata234 (Vahr) Traceback(547c86edd7a61cbf1868f31471c20750): Die Ausführung des Kommandos schoolwizards/users/remove schoolwizards/users ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 112, in _decorated ret = func(self, request, *a, **kw) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 140, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 252, in delete_user success = obj.remove_from_school(school, ldap_user_write) File "%PY2.7%/ucsschool/lib/models/user.py", line 439, in remove_from_school (self.schools or [school]).remove(school) ValueError: list.remove(x): x not in list
ucs-school-lib (10.0.2-1): r79116 | Bug #44546: fix an error during removing users from school ucs-school-lib.yaml: r79117 | YAML Bug #44546
list.remove() does not raise IndexError, only ValueError: https://docs.python.org/2/library/stdtypes.html#mutable-sequence-types
ucs-school-lib (10.0.2-2): r79501 | Bug #44546: only catch ValueError
OK: code r79525: update advisory
UCS@school 4.2 v2 has been released. http://docs.software-univention.de/changelog-ucsschool-4.2v2-de.html If this error occurs again, please clone this bug.