Skip to content

Error handling to prevent loading corrupt or empty files #55

@riyaayay

Description

@riyaayay

At # Function to load shopping list from a JSON file: In the load_list() function, if the JSON file exists but is empty or corrupted, the code may raise an error. To prevent this, you can wrap the json.load() call in a try-except block.
So, please assign me this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions