If the JSON file is empty, the application crashes.
There is no error handling for an empty data file.
The connector could add new records, but this method can't load anything if the file does not exist
https://git.c3000.ch/sroth/Brovski-Adress-Etiketten-Verwaltung/src/commit/ec130fcee9ef3a0500d610abc5cad098cf0ac15c/src/connector.py#L40-L42
So this could handle a file without records
https://git.c3000.ch/sroth/Brovski-Adress-Etiketten-Verwaltung/src/commit/ec130fcee9ef3a0500d610abc5cad098cf0ac15c/src/connector.py#L69-L78
it will crash at the get_all method
sroth
added the bug label 2025-04-28 09:02:06 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
If the JSON file is empty, the application crashes.
There is no error handling for an empty data file.
The connector could add new records, but this method can't load anything if the file does not exist
So this could handle a file without records
it will crash at the get_all method
statuszeile_und_filterto main6407cf4229fixes the problem with empty or non existing files by returning empty lists