mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
Remove HSDirError exception, because it is no longer thrown
This commit is contained in:
parent
360fb6cfcc
commit
87761c6fce
@ -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
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user