From 87761c6fce7433df0560d82231279e2906dae2f4 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 5 Sep 2016 11:32:30 -0700 Subject: [PATCH] Remove HSDirError exception, because it is no longer thrown --- onionshare/onion.py | 8 -------- onionshare/onionshare.py | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/onionshare/onion.py b/onionshare/onion.py index c015f5e9..5370fe2d 100644 --- a/onionshare/onion.py +++ b/onionshare/onion.py @@ -32,14 +32,6 @@ class NoTor(Exception): """ pass -class HSDirError(Exception): - """ - This exception is raised when onionshare tries create a non-ephemeral - onion service and does not have permission to create or write to - the onion service directory. - """ - pass - class Onion(object): """ Onion is an abstraction layer for connecting to the Tor control port and diff --git a/onionshare/onionshare.py b/onionshare/onionshare.py index cd401f3c..6dcc5ba0 100644 --- a/onionshare/onionshare.py +++ b/onionshare/onionshare.py @@ -64,7 +64,7 @@ class OnionShare(object): self.port = tmpsock.getsockname()[1] tmpsock.close() - def start_onion_service(self, gui=False): + def start_onion_service(self): """ Start the onionshare onion service. """ @@ -144,8 +144,6 @@ def main(cwd=None): app.start_onion_service() except onion.NoTor as e: sys.exit(e.args[0]) - except onion.HSDirError as e: - sys.exit(e.args[0]) # prepare files to share print(strings._("preparing_files"))