Univention Bugzilla – Bug 41994
ValueError: list.remove(x): x not in list
Last modified: 2017-06-23 13:33:12 CEST
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
Created attachment 7870 [details] patch
Reported again, 4.1-4 errata410 (Vahr)
Reported again, 4.1-4 errata410 (Vahr) Remark: ich kann in dieser Schule keine Lehrer löschen. Bei anderen Schulen funktioniert es!
Please clone this bug for UCS 4.2 if the problem is still reproducible in 4.1 R2.
ucs-school-lib (9.0.33-1): r79118 | Bug #41994: fix an error during removing users from school ucs-school-lib.yaml: r79119 | YAML Bug #41994
see Bug #44546
ucs-school-lib (9.0.33-3): r79502 | Bug #41994: catch only ValueError
OK: code r79525: update advisory
UCS@school 4.1 R2 v12 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v12-de.html If this error occurs again, please clone this bug.