mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Check for empty values
This commit is contained in:
parent
3a0c68bf5c
commit
3ddbb6a6cd
@ -362,6 +362,10 @@ else:
|
|||||||
# Extract database configuration from the config.yaml file
|
# Extract database configuration from the config.yaml file
|
||||||
db_config = CONFIG.get('database', {})
|
db_config = CONFIG.get('database', {})
|
||||||
|
|
||||||
|
# Default action if db_config not specified in yaml file
|
||||||
|
if not db_config:
|
||||||
|
db_config = {}
|
||||||
|
|
||||||
# If a particular database option is not specified in the config file,
|
# If a particular database option is not specified in the config file,
|
||||||
# look for it in the environmental variables
|
# look for it in the environmental variables
|
||||||
# e.g. INVENTREE_DB_NAME / INVENTREE_DB_USER / etc
|
# e.g. INVENTREE_DB_NAME / INVENTREE_DB_USER / etc
|
||||||
|
Loading…
Reference in New Issue
Block a user