Raise an exception for configs

This commit is contained in:
Dimitris Zlatanidis 2022-12-17 17:42:35 +02:00
parent a742c714ce
commit 7744d69225

View file

@ -88,10 +88,10 @@ class Configs:
colors: str = config['colors']
# Wget options
wget_options: str = config['wget_options']
wget_options: str = config['wget_optionsa']
except KeyError:
pass
except KeyError as err:
raise KeyError(f"ERROR: {err} in the configurations.")
# Creating the paths if not exists
paths = [tmp_slpkg,