Univention Bugzilla – Attachment 9823 Details for
Bug 47922
Creating report fails if referenced objects do not exists: AttributeError: 'NoneType' object has no attribute 'info'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
interpreter.py.patch
interpreter.py.patch (text/plain), 574 bytes, created by
Felix Botner
on 2019-02-04 10:10:25 CET
(
hide
)
Description:
interpreter.py.patch
Filename:
MIME Type:
Creator:
Felix Botner
Created:
2019-02-04 10:10:25 CET
Size:
574 bytes
patch
obsolete
>--- /usr/share/pyshared/univention/directory/reports/interpreter.py 2018-12-22 15:10:25.992000000 +0100 >+++ /usr/share/pyshared/univention/directory/reports/interpreter.py 2018-12-22 15:10:00.340000000 +0100 >@@ -160,7 +160,7 @@ > > def attribute(self, token, base): > if 'name' in token.attrs: >- if token.attrs['name'] in base.info: >+ if base and hasattr(base, 'info') and token.attrs['name'] in base.info: > value = base.info[token.attrs['name']] > if isinstance(value, (list, tuple)): > if not value or (isinstance(value, str) and value.lower() == 'none'):
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 47922
: 9823 |
9833