update-manager crashed with AttributeError in escape(): 'NoneType' object has no attribute 'replace'

Bug #1044080 reported by Davemedia
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Stop aplication

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: update-manager 1:0.168
ProcVersionSignature: Ubuntu 3.5.0-10.10-generic 3.5.1
Uname: Linux 3.5.0-10-generic i686
ApportVersion: 2.4-0ubuntu8
Architecture: i386
Date: Thu Aug 30 18:47:58 2012
ExecutablePath: /usr/bin/update-manager
GsettingsChanges:
 b'com.ubuntu.update-manager' b'first-run' b'false'
 b'com.ubuntu.update-manager' b'launch-time' b'1346363132'
 b'com.ubuntu.update-manager' b'show-details' b'true'
 b'com.ubuntu.update-manager' b'window-height' b'319'
 b'com.ubuntu.update-manager' b'window-width' b'640'
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120724.2)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/update-manager
PythonArgs: ['/usr/bin/update-manager']
SourcePackage: update-manager
Title: update-manager crashed with AttributeError in escape(): 'NoneType' object has no attribute 'replace'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: nopasswdlogin

Revision history for this message
Davemedia (davecadastro) wrote :
tags: removed: need-duplicate-check
Changed in update-manager (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Johnston (cjohnston) wrote :

Crashed on me today while I was doing an upgrade.

Revision history for this message
Michael Vogt (mvo) wrote :

Fixing this is easy:
=== modified file 'UpdateManager/UpdatesAvailable.py'
--- UpdateManager/UpdatesAvailable.py 2012-10-03 15:16:01 +0000
+++ UpdateManager/UpdatesAvailable.py 2012-10-10 08:06:24 +0000
@@ -715,7 +715,7 @@
                 if not pkg.is_installed:
                     name += _(" (New install)")
                 summary = xml.sax.saxutils.escape(getattr(pkg.candidate,
- "summary", None))
+ "summary", ""))
                 if self.summary_before_name:
                     contents = "%s\n<small>%s</small>" % (summary, name)
                 else:

Its a bit puzling that summary is empty though.

visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.174.3

---------------
update-manager (1:0.174.3) quantal; urgency=low

  * UpdateManager/UpdatesAvailable.py:
    - never pass "None" to xml.sax.saxutils.escape (LP: #1044080)
 -- Michael Vogt <email address hidden> Wed, 10 Oct 2012 10:21:50 +0200

Changed in update-manager (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Karl J. Smith (karl-karl) wrote :

I had been running 12.10 for a while, and just switched to a new mirror using the 'choose the best mirror'. It crashed right after I picked the new selection.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.