From 55d19f1c307e79de5f6c5e79bfe07d4353e908e8 Mon Sep 17 00:00:00 2001 From: J Rob Gant Date: Thu, 16 Aug 2018 22:05:18 -0400 Subject: [PATCH] ask_pipenv needs the cmd_name because cmd isn't always list/tuple, sometimes it's a str. --- lint/base_linter/python_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint/base_linter/python_linter.py b/lint/base_linter/python_linter.py index 032ee94d9..079c63e45 100644 --- a/lint/base_linter/python_linter.py +++ b/lint/base_linter/python_linter.py @@ -77,7 +77,7 @@ def context_sensitive_executable_path(self, cmd): # If we're here the user didn't specify anything. This is the default # experience. So we kick in some 'magic' cwd = self.get_working_dir(settings) - executable = ask_pipenv(cmd[0], cwd) + executable = ask_pipenv(cmd_name, cwd) if executable: logger.info( "{}: Using {} according to 'pipenv'"