Fixed KeyError

This commit is contained in:
Dimitris Zlatanidis 2023-03-01 12:43:22 +02:00
parent 38d7c1b03c
commit 47244bbcde

View file

@ -91,10 +91,11 @@ class Configs:
# Load configurations from the file.
load = LoadConfigs()
configs = load.file(etc_path, prog_name)
config = configs['CONFIGS']
if config:
if configs:
try:
config = configs['CONFIGS']
# OS architecture by default.
os_arch: str = config['OS_ARCH']