Univention Bugzilla – Attachment 7870 Details for
Bug 41994
ValueError: list.remove(x): x not in list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
41994.patch (text/plain), 512 bytes, created by
Florian Best
on 2016-08-15 16:02:13 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-08-15 16:02:13 CEST
Size:
512 bytes
patch
obsolete
>diff --git a/ucs-school-lib/python/models/user.py b/ucs-school-lib/python/models/user.py >index d1a5ae9..0ef9aec 100644 >--- a/ucs-school-lib/python/models/user.py >+++ b/ucs-school-lib/python/models/user.py >@@ -398,7 +398,7 @@ class User(UCSSchoolHelperAbstractClass): > 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) > return False > if not self.schools:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41994
: 7870