Default our attribute access to None

This commit is contained in:
Ian Cordasco 2017-05-17 20:36:03 -05:00
parent 7e112ff607
commit a30c753c39
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -59,7 +59,7 @@ class Issue(nodes.Element):
def __eq__(self, other):
for attr in self._cmp_keys:
if getattr(self, attr) != getattr(other, attr):
if getattr(self, attr, None) != getattr(other, attr, None):
return False
return True