diff --git a/thefuck/shells/__init__.py b/thefuck/shells/__init__.py index 79fb66c8..0413f6bf 100644 --- a/thefuck/shells/__init__.py +++ b/thefuck/shells/__init__.py @@ -22,8 +22,7 @@ shells = {'bash': Bash, def _get_shell(): proc = Process(os.getpid()) - while (proc is not None): - name = None + while proc is not None: try: name = proc.name() except TypeError: