Fixed error for the config file

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-12-21 08:52:54 +02:00
parent e82d860ad6
commit 7b4ebd55c3

View file

@ -90,8 +90,9 @@ class Configs:
# Wget options
wget_options: str = config['wget_options']
except KeyError as err:
raise KeyError(f"ERROR: {err} in the configurations.")
except KeyError:
print("Error: check the configuration file "
"in the '/etc/slpkg/' folder.\n")
# Creating the paths if not exists
paths = [tmp_slpkg,