diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-10-11 15:42:24 -0700 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-10-11 15:42:24 -0700 |
commit | 805d073f10d532d33b55bbccd90479c6a24c09fa (patch) | |
tree | 7df8ed1d7656c6f4f0a1d58d40d91aeb750328fd | |
parent | b24eb9a8ca82e89e619bbd5b0d6c34fe3389238a (diff) | |
download | python-setuptools-bitbucket-805d073f10d532d33b55bbccd90479c6a24c09fa.tar.gz |
Fix VersionConflict test failure
Fixes `TypeError: 'NoneType' object is not iterable` error at pkg_resources.py:632
Fixes issue #270
-rw-r--r-- | pkg_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index de50c4b0..511068a6 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -628,7 +628,7 @@ class WorkingSet(object): if dist not in req: # Oops, the "best" so far conflicts with a dependency tmpl = "%s is installed but %s is required by %s" - args = dist, req, list(required_by.get(req)) + args = dist, req, list(required_by.get(req, [])) raise VersionConflict(tmpl % args) # push the new requirements onto the stack |