Add runtime option for forcing error if poetry is not found

This commit is contained in:
2020-12-05 14:57:44 -05:00
parent 39439f132a
commit 99edc1c24e
3 changed files with 17 additions and 4 deletions

View File

@@ -36,6 +36,5 @@ try:
from poetry.utils.env import VirtualEnv
except ImportError:
raise exceptions.PoetryNotInstalledError(
f"No version of Poetry could be imported under the current environment for '{sys.executable}'",
sys.path,
f"No version of Poetry could be imported under the current environment for '{sys.executable}'"
) from None