[Pkg-privacy-commits] [onionshare] 40/55: Remove HSDirError exception, because it is no longer thrown

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Sep 8 10:27:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch debian
in repository onionshare.

commit 87761c6fce7433df0560d82231279e2906dae2f4
Author: Micah Lee <micah at micahflee.com>
Date:   Mon Sep 5 11:32:30 2016 -0700

    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 c015f5e..5370fe2 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 cd401f3..6dcc5ba 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"))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list