Bug 37531 - AttributeError: 'NoneCandidate' object has no attribute 'section'
AttributeError: 'NoneCandidate' object has no attribute 'section'
Status: CLOSED DUPLICATE of bug 37403
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on: 36209
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-13 13:20 CET by Florian Best
Modified: 2023-03-25 06:53 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): API change, Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-01-13 13:20:02 CET
Reported via UMC traceback feedback with 4.0-0 errata21 (Walle).

Traceback:
Execution of command 'appcenter/packages/get' has failed:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py",
line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 316, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 460, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py",
line 282, in _fake_func
    yield function(self, *args)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py",
line 401, in packages_get
    return self._package_to_dict(package, full=True)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py",
line 527, in _package_to_dict
    result['section'] = candidate.section
AttributeError: 'NoneCandidate' object has no attribute 'section'


+++ This bug was initially created as a clone of Bug #36209 +++

I tried to install libaudit0 via 'Package Management' UMC module and I got the following traceback:

Execution of command 'appcenter/packages/get' has failed:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 309, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 449, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 275, in _fake_func
    yield function(self, *args)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 400, in packages_get
    return self._package_to_dict(package, full=True)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 526, in _package_to_dict
    result['section'] = candidate.section
AttributeError: 'NoneCandidate' object has no attribute 'section'
Comment 1 Dirk Wiesenthal univentionstaff 2015-01-13 13:27:56 CET

*** This bug has been marked as a duplicate of bug 37403 ***
Comment 2 Florian Best univentionstaff 2015-01-13 13:37:43 CET
(In reply to Dirk Wiesenthal from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 37403 ***

I knew this :D