aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2016-09-05 11:32:30 -0700
committerMicah Lee <micah@micahflee.com>2016-09-05 11:32:30 -0700
commit87761c6fce7433df0560d82231279e2906dae2f4 (patch)
tree7dbba83d6bb049059729e2551514ce81fd2190e2
parent360fb6cfccf76f4ddc821145fe4d93bcf4341259 (diff)
downloadonionshare-87761c6fce7433df0560d82231279e2906dae2f4.tar.gz
onionshare-87761c6fce7433df0560d82231279e2906dae2f4.zip
Remove HSDirError exception, because it is no longer thrown
-rw-r--r--onionshare/onion.py8
-rw-r--r--onionshare/onionshare.py4
2 files changed, 1 insertions, 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"))