From edaa8bd073382027bcb2042c4b14358c17c0a725 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 29 Nov 2020 12:30:19 -0800 Subject: [PATCH] The CLI error message gets printed from the Onion object, so don't try to print it the exception --- cli/onionshare_cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 7361ac9e..bcc22f15 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -332,7 +332,7 @@ def main(cwd=None): print("") sys.exit() except Exception as e: - sys.exit(e.args[0]) + sys.exit() # Start the onionshare app try: