imsubhamsingh / imsubhamsingh/OpenQ

Storage File Handling in _load_from_disk

Open
#11 0 comments 0 reactions 1 assignee Claimed by @imsubhamsingh View on GitHub
bug
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The _load_from_disk method initializes loaded_messages outside of the with block but uses it inside without checking whether the file read was successful. Also, the loaded_messages list, as initialized, implies that it could be used even when the file is not present, which is counter-intuitive.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.