pylorax: Fix undefind strings on subprocess crash
Set output_string and err_string to None so that a crash will not crash.
This commit is contained in:
parent
493ae32d54
commit
8cf8877e50
@ -153,6 +153,8 @@ def _run_program(argv, root='/', stdin=None, stdout=None, env_prune=None, log_ou
|
||||
env_prune=env_prune, universal_newlines=not binary_output,
|
||||
env_add=env_add, reset_handlers=reset_handlers, reset_lang=reset_lang)
|
||||
|
||||
output_string = None
|
||||
err_string = None
|
||||
if callback:
|
||||
while callback(proc) and proc.poll() is None:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user