diff --git a/neo/Prompt/PromptData.py b/neo/Prompt/PromptData.py index b123e7ce3..27ed5ed98 100644 --- a/neo/Prompt/PromptData.py +++ b/neo/Prompt/PromptData.py @@ -14,5 +14,5 @@ def close_wallet(): Blockchain.Default().PersistCompleted.on_change -= PromptData.Wallet.ProcessNewBlock PromptData.Wallet.Close() PromptData.Wallet = None - print("Closed wallet %s" % path) + print(f"Closed wallet {path}") return True diff --git a/neo/bin/api_server.py b/neo/bin/api_server.py index 1aaeaa6f6..0b58342d8 100755 --- a/neo/bin/api_server.py +++ b/neo/bin/api_server.py @@ -327,7 +327,9 @@ def main(): wallet = main_task.result() if wallet: + path = wallet._path wallet.Close() + logger.info(f"Closed wallet {path}") if __name__ == "__main__":