Skip to content

Commit 49afd8c

Browse files
committed
Fix __bool__
Signed-off-by: harupy <[email protected]>
1 parent cd8152a commit 49afd8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __str__(self) -> str:
181181
return ''
182182

183183
def __bool__(self) -> bool:
184-
return self.__nonzero__()
184+
return bool(self.errors)
185185

186186

187187
class HashError(InstallationError):

0 commit comments

Comments
 (0)