Skip to content

Commit

Permalink
Break early if config.py loading is disable
Browse files Browse the repository at this point in the history
  • Loading branch information
kannibalox committed Feb 16, 2024
1 parent 1d7d1ca commit 124ef83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyrosimple/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def load_custom_py():
log = logging.getLogger(__name__)
if not settings.CONFIG_PY:
log.debug("Custom code loading is disabled")
return
if settings.CONFIG_PY_LOADED:
log.debug("Custom code has already been loaded")
config_file = Path(settings.CONFIG_PY).expanduser()
Expand Down

0 comments on commit 124ef83

Please sign in to comment.