Skip to content

Commit 07b29c5

Browse files
committed
fixed failing tests
1 parent 6cb1f56 commit 07b29c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ninja_extra/exceptions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ def __new__(
7171

7272
def __eq__(self, other: object) -> bool:
7373
r = super().__eq__(other)
74+
if r is NotImplemented:
75+
return NotImplemented # pragma: no cover
7476
try:
7577
return r and self.code == other.code # type: ignore
76-
except AttributeError:
78+
except AttributeError: # pragma: no cover
7779
return r
7880

7981
def __ne__(self, other: object) -> bool:

0 commit comments

Comments
 (0)