Univention Bugzilla – Attachment 6926 Details for
Bug 38616
_err2str fails if ldap exception is not a dict
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
38616.patch (text/plain), 848 bytes, created by
Florian Best
on 2015-05-28 12:36:58 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-05-28 12:36:58 CEST
Size:
848 bytes
patch
obsolete
>diff --git a/ucs-4.0-2/management/univention-directory-manager-modules/modules/univention/admin/uldap.py b/ucs-4.0-2/management/univention-directory-manager-modules/modules/univention/admin/uldap.py >index 49548d5..103526b 100644 >--- a/ucs-4.0-2/management/univention-directory-manager-modules/modules/univention/admin/uldap.py >+++ b/ucs-4.0-2/management/univention-directory-manager-modules/modules/univention/admin/uldap.py >@@ -79,7 +79,10 @@ def getMachineConnection(start_tls=2,decode_ignorelist=[], ldap_master = True): > def _err2str(err): > msgs = [] > for iarg in err.args: >- msg = ': '.join([str(m) for m in (iarg.get('desc'), iarg.get('info')) if m]) >+ if isinstance(iargs, dict): >+ msg = ': '.join([str(m) for m in (iarg.get('desc'), iarg.get('info')) if m]) >+ else: >+ msg = str(iarg) > if msg: > msgs.append(msg) > if not msgs:
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 38616
: 6926