From 84f2066f55764b2f0d46f2af9e7ef4573f05338e Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Tue, 27 Sep 2016 01:22:14 -0700 Subject: [PATCH] Bugfix. --- rtv/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtv/terminal.py b/rtv/terminal.py index a036716..3dbce2f 100644 --- a/rtv/terminal.py +++ b/rtv/terminal.py @@ -373,7 +373,8 @@ class Terminal(object): _, stderr = p.communicate() if copious_output: six.moves.input('Press any key to continue') - if p.poll() != 0: + code = p.poll() + if code != 0: _logger.warning(stderr) self.show_notification( 'Program exited with status={0}\n{1}'.format(