diff --git a/ChangeLog.txt b/ChangeLog.txt index 3bf57ef8..0f7ae6da 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,9 +1,12 @@ ## slpkg - ChangeLog -### 5.0.3 - 31/03/2024 +### 5.0.3 - 01/04/2024 - Updated: * Updated for slpkg_new-configs and (D)iff command (Thanks to Marav) +- Bugfixes: + * JSONDecodeError: Expecting value: line 1 column 1 (char 0) (Thanks to Marav) + ### 5.0.2 - 30/03/2024 - Updated: * Updated for coding style diff --git a/slpkg/utilities.py b/slpkg/utilities.py index a9bebc6d..ce14fa7f 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -196,6 +196,8 @@ class Utilities(Configs): json_data: dict = json.loads(file.read_text(encoding='utf-8')) except FileNotFoundError: self.errors.raise_error_message(f'{file} not found.', exit_status=1) + except json.decoder.JSONDecodeError: + pass return json_data def ignore_packages(self, packages: list) -> list: