                          (and (condition-case err
                                   (zerop (call-process blackd-path nil nil nil "--version"))
                                 (error (message "%s" (error-message-string err)) nil))
-                              blackd-path))))
+                              blackd-path)))
+                 t)
 
                 ((and (python-use-poetry-p)
                       (member "black" requirements))

                      (python-pre-commit-config-has-hook-p "isort"))
                 (make-local-variable 'python-isort-command)
                 (setf python-isort-command
                       (concat (python-pre-commit-virtualenv-path "isort") "/bin/isort")))
                ((and (python-use-poetry-p)
                      (member "isort" requirements))
                 (make-local-variable 'python-isort-command)
                 (make-local-variable 'python-isort-arguments)
                 (setf python-isort-command "poetry"
                       python-isort-arguments
                       (append '("run" "isort") python-isort-arguments)))
                ((executable-find python-isort-command)
                 (when (and (boundp 'python-black-command)
                            python-black-command

                 (make-local-variable 'python-black-command)
                 (make-local-variable 'python-black-d-command)
                 (setf python-black-command nil
                       python-black-d-command nil)
                 t))

      (when python-black-d-command
        (make-local-variable 'python-black-d-request-headers-function)
