Handle _brotli error

This commit is contained in:
DevilXD committed 2022-11-11 13:07:15 +01:00
1 parent cc4cbc5179
commit 4ae68b7d23
2 files changed
+6 -1

No files matched your search

+6
View File
@@ -23,10 +23,16 @@ import win32con
import win32gui
from yarl import URL
from PIL import Image as Image_module
try:
from seleniumwire.request import Request
from selenium.common.exceptions import WebDriverException
from seleniumwire.undetected_chromedriver import Chrome, ChromeOptions
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 cache import ImageCache
-1
View File
@@ -43,7 +43,6 @@ if __name__ == "__main__":
from exceptions import CaptchaRequired
from constants import SELF_PATH, FORMATTER, LOG_PATH, WINDOW_TITLE
class Parser(argparse.ArgumentParser):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)