Comment 2 for bug 495326

Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

here's a patch that bandaids the problem:
=== modified file 'src/lazr/restfulclient/resource.py'
--- old/src/lazr/restfulclient/resource.py 2009-10-23 13:22:44 +0000
+++ new/src/lazr/restfulclient/resource.py 2009-12-11 04:52:32 +0000
@@ -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 (
             self.self_link == other.self_link and
             self.http_etag == other.http_etag and