mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 06:26:10 -04:00
React to Meek client binary not found
This commit is contained in:
parent
fa0f707a22
commit
93ea5eb068
2 changed files with 26 additions and 7 deletions
|
@ -72,6 +72,12 @@ class Meek(object):
|
|||
queue.put(line)
|
||||
out.close()
|
||||
|
||||
# Abort early if we can't find the Meek client
|
||||
# common.get_tor_paths() has already checked it's a file
|
||||
# so just abort if it's a NoneType object
|
||||
if self.meek_client_file_path is None:
|
||||
raise MeekNotFound()
|
||||
|
||||
# Start the Meek Client as a subprocess.
|
||||
|
||||
if self.common.platform == "Windows":
|
||||
|
@ -179,3 +185,8 @@ class MeekNotRunning(Exception):
|
|||
We were unable to start Meek or obtain the port
|
||||
number it started on, in order to do domain fronting.
|
||||
"""
|
||||
|
||||
class MeekNotFound(Exception):
|
||||
"""
|
||||
We were unable to find the Meek Client binary.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue