Skip to content
Snippets Groups Projects
Commit a84fc7a2 authored by Chad Whitacre's avatar Chad Whitacre
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ def grep(reqfile, packages, silent=False): ...@@ -62,7 +62,7 @@ def grep(reqfile, packages, silent=False):
exit(0) exit(0)
if not silent: if not silent:
print('Not found.'.format(requirement.req.project_name)) print('Not found.')
exit(1) exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment