Raise error if processing without a loaded config

This commit is contained in:
Labrys of Knossos 2022-12-14 03:31:45 -05:00
commit cace1271ae
6 changed files with 12 additions and 0 deletions

View file

@ -44,6 +44,8 @@ def process(
failure_link: str = '',
) -> ProcessResult:
# Get configuration
if core.CFG is None:
raise RuntimeError('Configuration not loaded.')
cfg = core.CFG[section][input_category]
# Base URL

View file

@ -44,6 +44,8 @@ def process(
failure_link: str = '',
) -> ProcessResult:
# Get configuration
if core.CFG is None:
raise RuntimeError('Configuration not loaded.')
cfg = core.CFG[section][input_category]
# Base URL

View file

@ -44,6 +44,8 @@ def process(
failure_link: str = '',
) -> ProcessResult:
# Get configuration
if core.CFG is None:
raise RuntimeError('Configuration not loaded.')
cfg = core.CFG[section][input_category]
# Base URL

View file

@ -44,6 +44,8 @@ def process(
failure_link: str = '',
) -> ProcessResult:
# Get configuration
if core.CFG is None:
raise RuntimeError('Configuration not loaded.')
cfg = core.CFG[section][input_category]
# Base URL

View file

@ -44,6 +44,8 @@ def process(
failure_link: str = '',
) -> ProcessResult:
# Get configuration
if core.CFG is None:
raise RuntimeError('Configuration not loaded.')
cfg = core.CFG[section][input_category]
# Base URL

View file

@ -44,6 +44,8 @@ def process(
failure_link: str = '',
) -> ProcessResult:
# Get configuration
if core.CFG is None:
raise RuntimeError('Configuration not loaded.')
cfg = core.CFG[section][input_category]
# Base URL