From b1bb2367408495a5f97bedbfbb5a58682c15cba6 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 26 Dec 2022 18:21:02 +0100 Subject: [PATCH] improve help --- cashu/wallet/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 13f9127..6ff24c8 100644 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -82,10 +82,13 @@ def cli(ctx, host: str, walletname: str): error_str += "\n\n" if ENV_FILE: error_str += f"Edit your Cashu config file here: {ENV_FILE}" + env_path = ENV_FILE else: error_str += ( f"Ceate a new Cashu config file here: {os.path.join(CASHU_DIR, '.env')}" ) + env_path = os.path.join(CASHU_DIR, ".env") + error_str += f'\n\nYou can turn off Tor with this command: echo "TOR=false" >> {env_path}' raise Exception(error_str) ctx.obj["WALLET"] = wallet