React to Meek client binary not found

This commit is contained in:
Miguel Jacq 2021-10-25 11:12:38 +11:00
parent fa0f707a22
commit 93ea5eb068
2 changed files with 26 additions and 7 deletions

View file

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