From 01c19094e8c963bcdebc218c569e51a2685c3c4d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 9 Sep 2024 14:39:44 -0400 Subject: [PATCH] fix(python): type error if conda-anaconda-home is unset Amend: 8f60a1bc46b3 --- modules/lang/python/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 7d3f57281..657fcef77 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -288,7 +288,7 @@ ;; explicitly. Afterwards, run M-x `conda-env-activate' to switch between ;; environments (or (cl-loop for dir in (cons conda-anaconda-home conda-home-candidates) - if (file-directory-p dir) + if (and dir (file-directory-p dir)) return (setq conda-anaconda-home (expand-file-name dir) conda-env-home-directory (expand-file-name dir))) (message "Cannot find Anaconda installation"))