From ede2b4e7872403968f76da6c8cd94555c8a2e509 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 28 Nov 2022 15:21:27 +1100 Subject: [PATCH] Change point at which yaml module is loaded (#3999) --- InvenTree/InvenTree/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: