Skip to content

Commit

Permalink
tweak pelican constant
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz committed Aug 1, 2024
1 parent 56713da commit 3c1e1a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pretext/project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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."
)
Expand Down

0 comments on commit 3c1e1a6

Please sign in to comment.