Created
October 4, 2022 14:20
-
-
Save alvistar/aaf6f1d19a6393286200e801e4750aa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/chia/util/keyring_wrapper.py b/chia/util/keyring_wrapper.py | |
index 6a1f346d3..3ae72a3cb 100644 | |
--- a/chia/util/keyring_wrapper.py | |
+++ b/chia/util/keyring_wrapper.py | |
@@ -112,7 +112,7 @@ class KeyringWrapper: | |
self.keys_root_path = keys_root_path | |
if force_legacy: | |
legacy_keyring = get_legacy_keyring_instance() | |
- if check_legacy_keyring_keys_present(legacy_keyring): | |
+ if legacy_keyring is not None and check_legacy_keyring_keys_present(legacy_keyring): | |
self.keyring = legacy_keyring | |
else: | |
self.refresh_keyrings() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment