Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Sep 2, 2023
1 parent 3d0b0b1 commit 7e14793
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pip_abandoned/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def search(gh_token, path, verbosity):
set_log_level(verbosity)

dists = list(distributions(path=[path]))
if len(dists) == 0:
raise Exception(f"Couldn't find any packages in {path}")

inactive_packages = [dist for dist in dists if is_inactive(dist)]

Expand Down

0 comments on commit 7e14793

Please sign in to comment.