Update Zappa.create_handler_venv, so that when the result from pip_process.communicate() returns None for stderr, an unrelated exception is NOT raised, and zappa.create_handler_venv proceeds as expected.
Currently, the code assumes a str value is returned, but on win32 systems, it appears that None may be returned.
coverage: 74.783% (+0.1%) from 74.648%
when pulling c9a7b79b93a738b824f0415512ce4f094f9c07a9 on fix/win-slimhandler-error-handling-issue1342
into b00312d35a1ff57923053e5e8e60857e1f0d6912 on master.
Description
Update
Zappa.create_handler_venv
, so that when the result frompip_process.communicate()
returnsNone
for stderr, an unrelated exception is NOT raised, andzappa.create_handler_venv
proceeds as expected.Currently, the code assumes a str value is returned, but on
win32
systems, it appears thatNone
may be returned.GitHub Issues
1342