diff options
author | Miguel Jacq <mig@mig5.net> | 2021-03-10 15:04:22 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-03-10 15:04:22 +1100 |
commit | 5b5c3ad87a0788415daad4cdfd90df681ae703e8 (patch) | |
tree | 6ac0b2cde8893086e04e247bf31a8922c54ab628 | |
parent | 67cdc0192b65fbc5ae48b0200bace59d0a9be631 (diff) | |
download | onionshare-5b5c3ad87a0788415daad4cdfd90df681ae703e8.tar.gz onionshare-5b5c3ad87a0788415daad4cdfd90df681ae703e8.zip |
Fix the call to start_onion_service in CLI mode when using autostart timer, which had out of date positional args. Fix Tor exception handlers which were also out of date with the start_onion_service function
-rw-r--r-- | cli/onionshare_cli/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 092e716a..0f361b00 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -370,7 +370,7 @@ def main(cwd=None): ) sys.exit() - app.start_onion_service(mode, mode_settings, False, True) + app.start_onion_service(mode, mode_settings, False) url = build_url(mode_settings, app, web) schedule = datetime.now() + timedelta(seconds=autostart_timer) if mode == "receive": @@ -412,7 +412,7 @@ def main(cwd=None): except KeyboardInterrupt: print("") sys.exit() - except (TorTooOld, TorErrorProtocolError) as e: + except (TorTooOldEphemeral, TorTooOldStealth, TorErrorProtocolError) as e: print("") print(e.args[0]) sys.exit() |