From 379d2953c90610a48eb80d1cabedb63b8f948813 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Sat, 13 Aug 2016 16:14:05 +0300 Subject: [PATCH] #N/A: Use `for_app` helper --- thefuck/rules/fab_command_not_found.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thefuck/rules/fab_command_not_found.py b/thefuck/rules/fab_command_not_found.py index 8d610d4..9c4f699 100644 --- a/thefuck/rules/fab_command_not_found.py +++ b/thefuck/rules/fab_command_not_found.py @@ -1,9 +1,9 @@ -from thefuck.utils import eager, get_closest +from thefuck.utils import eager, get_closest, for_app +@for_app('fab') def match(command): - return (command.script_parts[0] == 'fab' - and 'Warning: Command(s) not found:' in command.stderr) + return 'Warning: Command(s) not found:' in command.stderr # We need different behavior then in get_all_matched_commands.