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'`.
This commit is contained in:
Chad Whitacre
2016-05-10 07:31:25 -04:00
parent 92b4f5e8aa
commit a84fc7a248
+1 -1
View File
@@ -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)