Univention Bugzilla – Bug 38926
typo in appcenter error handling
Last modified: 2015-08-11 10:05:50 CEST
We received the following traceback. It's caused by the last appcenter erratum. Die Ausführung des Kommandos appcenter/query ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 282, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 81, in _decorated return func(self, request, *a, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 316, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 460, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 282, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 123, in query applications = Application.all(force_reread=True) File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 772, in all cls.sync_with_server() File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 604, in sync_with_server raise AppcenterServerContactFailed(exc) File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 128, in __init__ message = _('Error while contacting the App Center server. %s') % (verbose_http_error(exc),) File "%PY2.7%/univention/management/console/modules/appcenter/util.py", line 157, in verbose_http_error strerror += getattr(exc, 'strerror', '') TypeError: cannot concatenate 'str' and 'NoneType' objects
- strerror += getattr(exc, 'strerror', '') + strerror += getattr(exc, 'strerror', '') or ''
2015-05-28-univention-management-console-module-appcenter.yaml: r62375 | YAML Bug #38926 univention-management-console-module-appcenter (4.1.20-39): r62368 | Bug #38926: fix error handling
(In reply to Florian Best from comment #1) > - strerror += getattr(exc, 'strerror', '') > + strerror += getattr(exc, 'strerror', '') or '' OK - if exc.strerror is None the reported traceback won't appear again OK - debian/changelog OK - yaml
<http://errata.univention.de/ucs/4.0/267.html>
Reported again, 4.0-2 errata263 (Walle)