Fixed for blacklist

This commit is contained in:
Dimitris Zlatanidis 2024-04-15 00:04:48 +03:00
parent 2ef63fb46c
commit fd69e18685

View file

@ -27,8 +27,8 @@ class Blacklist(Configs):
if self.blacklist_file_toml.is_file():
try:
with open(self.blacklist_file_toml, 'rb') as black:
packages: tuple = tuple({k.lower(): v for k, v in tomli.load(black).items()})
packages: dict = {k.lower(): v for k, v in tomli.load(black).items()}
except (tomli.TOMLDecodeError, KeyError) as error:
self.toml_errors.raise_toml_error_message(error, self.blacklist_file_toml)
return packages
return packages['packages']