mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Cleanup in packaging: don’t unnecessarily instantiate exceptions
This commit is contained in:
parent
35a4d01a92
commit
2ef747cb77
4 changed files with 4 additions and 4 deletions
|
@ -135,7 +135,7 @@ class ReleaseInfo(IndexReference):
|
|||
not return one existing distribution.
|
||||
"""
|
||||
if len(self.dists) == 0:
|
||||
raise LookupError()
|
||||
raise LookupError
|
||||
if dist_type:
|
||||
return self[dist_type]
|
||||
if prefer_source:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue