[Bug 1044080] Re: update-manager crashed with AttributeError in escape(): 'NoneType' object has no attribute 'replace'

Michael Vogt michael.vogt at ubuntu.com
Wed Oct 10 08:09:48 UTC 2012


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 changed to: Public

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1044080

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

Status in “update-manager” package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1044080/+subscriptions




More information about the foundations-bugs mailing list