diff --git a/pretext/project/__init__.py b/pretext/project/__init__.py index 1353430f..5bb7a194 100644 --- a/pretext/project/__init__.py +++ b/pretext/project/__init__.py @@ -13,10 +13,9 @@ try: import pelican # type: ignore import pelican.settings # type: ignore - - USEPELICAN = True + PELICAN_NOT_INSTALLED = False except ImportError: - USEPELICAN = False + PELICAN_NOT_INSTALLED = True from pydantic import ( field_validator, @@ -1498,7 +1497,7 @@ def stage_deployment(self) -> None: dirs_exist_ok=True, ) else: # strategy == "pelican_default" or "pelican_custom" - if USEPELICAN is False: + if PELICAN_NOT_INSTALLED: log.error( "Pelican is not installed. Please install Pelican to use this feature." )