diff --git a/InvenTree/InvenTree/config.py b/InvenTree/InvenTree/config.py index 54973abb9d..27722435f3 100644 --- a/InvenTree/InvenTree/config.py +++ b/InvenTree/InvenTree/config.py @@ -7,8 +7,6 @@ import shutil import string from pathlib import Path -import yaml - logger = logging.getLogger('inventree') @@ -61,6 +59,8 @@ def get_config_file(create=True) -> Path: def load_config_data() -> map: """Load configuration data from the config file.""" + import yaml + cfg_file = get_config_file() with open(cfg_file, 'r') as cfg: