diff --git a/thefuck/output_readers/rerun.py b/thefuck/output_readers/rerun.py index 74cbfbf6..af4f331a 100644 --- a/thefuck/output_readers/rerun.py +++ b/thefuck/output_readers/rerun.py @@ -53,8 +53,9 @@ 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( + split_expand = shlex.split(expanded) + is_slow = split_expand[0] in settings.slow_commands if split_expand else False + 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)