mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 10:56:14 +03:00
make sure keyring file gets closed (#17126)
* make sure keyring file gets closed * Update file_keyring.py
This commit is contained in:
parent
99f44c9fd8
commit
512f7b9fc5
@ -125,7 +125,7 @@ class FileKeyringContent:
|
||||
|
||||
@classmethod
|
||||
def create_from_path(cls, path: Path) -> FileKeyringContent:
|
||||
loaded_dict = dict(yaml.safe_load(open(path)))
|
||||
loaded_dict = dict(yaml.safe_load(path.read_text()))
|
||||
version = int(loaded_dict["version"])
|
||||
|
||||
if version > MAX_SUPPORTED_VERSION:
|
||||
|
Loading…
Reference in New Issue
Block a user