Remove HSDirError exception, because it is no longer thrown

This commit is contained in:
Micah Lee 2016-09-05 11:32:30 -07:00
parent 360fb6cfcc
commit 87761c6fce
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 1 additions and 11 deletions

View File

@ -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

View File

@ -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"))