Skip to content

__eq__ barfs with Non-git object comparisons #310

Closed
@autumnpat

Description

@autumnpat

Obviously this partial stack trace isn't from master, but the problem is still in master

if data in [None, ()]:

File "/usr/lib/python2.7/dist-packages/git/util.py", line 347, in eq
return self.name == other.name and self.email == other.email
AttributeError: 'NoneType' object has no attribute 'name'

eq should return false if the other item is None, a native Python type or type() !=

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions