Univention Bugzilla – Attachment 7044 Details for
Bug 39013
admin.modules.update() should handle ImportError
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
39013.patch (text/plain), 1.05 KB, created by
Florian Best
on 2015-07-23 12:40:25 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-07-23 12:40:25 CEST
Size:
1.05 KB
patch
obsolete
>diff --git a/ucs-4.1-0/management/univention-directory-manager-modules/modules/univention/admin/modules.py b/ucs-4.1-0/management/univention-directory-manager-modules/modules/univention/admin/modules.py >index c12e911..a118c97 100644 >--- a/ucs-4.1-0/management/univention-directory-manager-modules/modules/univention/admin/modules.py >+++ b/ucs-4.1-0/management/univention-directory-manager-modules/modules/univention/admin/modules.py >@@ -73,7 +73,11 @@ def _walk(root, dir, files): > ud.debug(ud.ADMIN, ud.INFO, 'admin.modules.update: importing "%s"' % p) > parts=p.split(os.path.sep) > mod, name='.'.join(parts), '/'.join(parts) >- m=__import__(mod, globals(), locals(), name) >+ try: >+ m = __import__(mod, globals(), locals(), name) >+ except ImportError as exc: >+ ud.debug(ud.ADMIN, ud.ERROR, 'admin.modules.update: import of %s failed: %s\n%s' % (p, exc, traceback.format_exc())) >+ continue > m.initialized=0 > if not hasattr(m, 'module'): > ud.debug(ud.ADMIN, ud.ERROR, 'admin.modules.update: attribute "module" is missing in module %r' % (mod,))
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 39013
: 7044