diff options
Diffstat (limited to 'Lib/packaging/pypi/dist.py')
-rw-r--r-- | Lib/packaging/pypi/dist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py index 16510df..db04cda 100644 --- a/Lib/packaging/pypi/dist.py +++ b/Lib/packaging/pypi/dist.py @@ -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: |