AttributeError: 'NoneType' object has no attribute 'self_link'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient (Ubuntu) |
Fix Released
|
High
|
James Westby |
Bug Description
Bug hugger, worked fine in 9.10: https:/
Now results in this error:
File "/home/
if bug.assignee != None:
File "/usr/lib/
return not self == other
File "/usr/lib/
self.self_link == other.self_link and
AttributeError: 'NoneType' object has no attribute 'self_link'
ProblemType: Bug
Architecture: i386
Date: Thu Dec 10 20:37:46 2009
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: python-
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: lazr.restfulclient
Tags: lucid
Uname: Linux 2.6.32-7-generic i686
Related branches
- Michael Nelson (community): Approve (code)
-
Diff: 28 lines (+11/-0)1 file modifiedsrc/lazr/restfulclient/resource.py (+11/-0)
here's a patch that bandaids the problem: restfulclient/ resource. py' lazr/restfulcli ent/resource. py 2009-10-23 13:22:44 +0000 lazr/restfulcli ent/resource. py 2009-12-11 04:52:32 +0000
self. self_link == other.self_link and
self. http_etag == other.http_etag and
=== modified file 'src/lazr/
--- old/src/
+++ new/src/
@@ -599,6 +599,10 @@
attributes are the same, and if their dirty attribute dicts
contain the same values.
"""
+ #they also aren't equal if one of them is None
+ if other is None:
+ return False
+
return (