mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
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:
Vendored
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user