Handle _brotli error
This commit is contained in:
1 parent
cc4cbc5179
commit
4ae68b7d23
2 files changed
+6
-1
No files matched your search
@@ -23,10 +23,16 @@ import win32con
|
|||||||
import win32gui
|
import win32gui
|
||||||
from yarl import URL
|
from yarl import URL
|
||||||
from PIL import Image as Image_module
|
from PIL import Image as Image_module
|
||||||
|
try:
|
||||||
from seleniumwire.request import Request
|
from seleniumwire.request import Request
|
||||||
from selenium.common.exceptions import WebDriverException
|
from selenium.common.exceptions import WebDriverException
|
||||||
from seleniumwire.undetected_chromedriver import Chrome, ChromeOptions
|
from seleniumwire.undetected_chromedriver import Chrome, ChromeOptions
|
||||||
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
||||||
|
except ImportError as exc:
|
||||||
|
raise ImportError(
|
||||||
|
"You need to install Visual C++ Redist (x86 and x64): "
|
||||||
|
"https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads"
|
||||||
|
) from exc
|
||||||
|
|
||||||
from translate import _
|
from translate import _
|
||||||
from cache import ImageCache
|
from cache import ImageCache
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ if __name__ == "__main__":
|
|||||||
from exceptions import CaptchaRequired
|
from exceptions import CaptchaRequired
|
||||||
from constants import SELF_PATH, FORMATTER, LOG_PATH, WINDOW_TITLE
|
from constants import SELF_PATH, FORMATTER, LOG_PATH, WINDOW_TITLE
|
||||||
|
|
||||||
|
|
||||||
class Parser(argparse.ArgumentParser):
|
class Parser(argparse.ArgumentParser):
|
||||||
def __init__(self, *args, **kwargs) -> None:
|
def __init__(self, *args, **kwargs) -> None:
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|||||||
Reference in new issue
Block a user