From f9730e8483b7250dd24e8e80cf17248be9e09e43 Mon Sep 17 00:00:00 2001 From: RetekBacsi Date: Wed, 2 Oct 2019 09:07:54 +0200 Subject: [PATCH] =?UTF-8?q?Slow=20command=20timeout=20didn=E2=80=99t=20wor?= =?UTF-8?q?k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit + Fixed debug message to include is_slow * Using only the first word of shlex.split when checking if command is slow. --- thefuck/output_readers/rerun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/output_readers/rerun.py b/thefuck/output_readers/rerun.py index 74cbfbf6..5de9375c 100644 --- a/thefuck/output_readers/rerun.py +++ b/thefuck/output_readers/rerun.py @@ -53,8 +53,8 @@ def get_output(script, expanded): env = dict(os.environ) env.update(settings.env) - is_slow = shlex.split(expanded) in settings.slow_commands - with logs.debug_time(u'Call: {}; with env: {}; is slow: '.format( + is_slow = shlex.split(expanded)[0] in settings.slow_commands + with logs.debug_time(u'Call: {}; with env: {}; is slow: {}'.format( script, env, is_slow)): result = Popen(expanded, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, env=env)