Merge pull request #669 from munki/unicodeerrormessagefix

Catch unicode error messages for downloads
This commit is contained in:
Greg Neagle
2016-10-05 16:27:43 +02:00
committed by GitHub

View File

@@ -1990,7 +1990,7 @@ def processInstall(manifestitem, cataloglist, installinfo,
munkicommon.display_warning(
'Download of %s failed: %s', manifestitem, errmsg)
iteminfo['installed'] = False
iteminfo['note'] = 'Download failed (%s)' % errmsg
iteminfo['note'] = u'Download failed (%s)' % errmsg
iteminfo['version_to_install'] = item_pl.get('version', 'UNKNOWN')
installinfo['managed_installs'].append(iteminfo)
if manifestitemname in installinfo['processed_installs']: