diff --git a/cdp/wallet.py b/cdp/wallet.py index b7532c7..e5e81a8 100644 --- a/cdp/wallet.py +++ b/cdp/wallet.py @@ -473,8 +473,9 @@ def _existing_seeds(self, file_path: str) -> dict[str, Any]: """ seeds_in_file = {} - with open(file_path) as f: - seeds_in_file = json.load(f) + if os.path.exists(file_path): + with open(file_path) as f: + seeds_in_file = json.load(f) return seeds_in_file