[Bug 875879] Re: update-manager crashed with AttributeError in show_diff(): 'NoneType' object has no attribute 'group'

Brian Murray brian at ubuntu.com
Tue Sep 4 23:07:28 UTC 2012


The source code looks like:

            if line.startswith("@@"):
                match = re.match(self.REGEX_RANGE, line)
                line_number = int(match.group("from_start"))

return'ing if there is no match should work but I wonder why there isn't
a match.

-- 
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/875879

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

Status in “aptdaemon” package in Ubuntu:
  New
Status in “update-manager” package in Ubuntu:
  Triaged
Status in “aptdaemon” source package in Precise:
  Triaged
Status in “update-manager” source package in Precise:
  Triaged
Status in “aptdaemon” source package in Quantal:
  New
Status in “update-manager” source package in Quantal:
  Triaged

Bug description:
  Happened when updating Oneiric.

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: update-manager 1:0.152.22
  ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu2
  Architecture: amd64
  Date: Sun Oct 16 19:49:42 2011
  ExecutablePath: /usr/bin/update-manager
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/update-manager
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  PythonArgs: ['/usr/bin/update-manager']
  SourcePackage: update-manager
  Title: update-manager crashed with AttributeError in show_diff(): 'NoneType' object has no attribute 'group'
  UpgradeStatus: Upgraded to oneiric on 2011-10-07 (8 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/875879/+subscriptions




More information about the foundations-bugs mailing list