Set default value for pip_install_call.get('stdout')

This commit is contained in:
pengyao 2014-07-10 11:19:33 +08:00
parent 4b0c342f71
commit bfa756cc9e

View File

@ -433,7 +433,7 @@ def installed(name,
if requirements or editable:
comments = []
if requirements:
for eachline in pip_install_call.get('stdout').split('\n'):
for eachline in pip_install_call.get('stdout', '').split('\n'):
if not eachline.startswith('Requirement already satisfied') and eachline != 'Cleaning up...':
ret['changes']['requirements'] = True
if ret['changes'].get('requirements'):