mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Fixed KeyError
This commit is contained in:
parent
38d7c1b03c
commit
47244bbcde
1 changed files with 3 additions and 2 deletions
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in a new issue