diff --git a/thefuck/custom_fuckups.py b/thefuck/custom_fuckups.py index 46258c93..5fc37a11 100644 --- a/thefuck/custom_fuckups.py +++ b/thefuck/custom_fuckups.py @@ -27,7 +27,7 @@ def get_fuckups(): # returns a dictionary of your fuckups from ~/.thefuck/my_fuc if IS_FUCKUP: key = line IS_FUCKUP = False - else + else: cmd = line IS_FUCKUP = True fuckups[key] = cmd diff --git a/thefuck/main.py b/thefuck/main.py index f8128ddf..945aab34 100644 --- a/thefuck/main.py +++ b/thefuck/main.py @@ -84,7 +84,7 @@ def check_args(settings, args, cmd): elif opt == '--remove': custom_fuckups.remove_fuckup(val) return True - else + else: return False except Exception as err: logs.failed(err, settings)