ask_pipenv needs the cmd_name because cmd isn't always list/tuple, sometimes it's a str.
@@ -77,7 +77,7 @@ class PythonLinter(linter.Linter):
# 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'"
