diff --git a/tox_poetry_installer/hooks.py b/tox_poetry_installer/hooks.py index 6aed0d9..172178d 100644 --- a/tox_poetry_installer/hooks.py +++ b/tox_poetry_installer/hooks.py @@ -93,8 +93,9 @@ def tox_on_install( try: poetry = utilities.check_preconditions(tox_env) except exceptions.SkipEnvironment as err: - if isinstance(err, exceptions.PoetryNotInstalledError) and ( - tox_env.core["require_poetry"] or tox_env.conf["require_poetry"] + if ( + isinstance(err, exceptions.PoetryNotInstalledError) + and tox_env.conf["require_poetry"] ): logger.error(str(err)) raise err