Commit a84fc7a2 authored by Chad Whitacre's avatar Chad Whitacre

clean up pip-pop in the `not silent` case

The extraneous `format` call is harmless in itself, but it's possible for `requirement.req` to be `None` here, which results in `AttributeError: 'NoneType' object has no attribute 'project_name'`.
parent 92b4f5e8
......@@ -62,7 +62,7 @@ def grep(reqfile, packages, silent=False):
exit(0)
if not silent:
print('Not found.'.format(requirement.req.project_name))
print('Not found.')
exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment