mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 01:40:21 +08:00
fix deprecation warning
This commit is contained in:
parent
c27c1961ba
commit
acaacf842f
@ -15,7 +15,7 @@ if len(logger.handlers) == 0:
|
||||
def get_sb(
|
||||
proxy: str | None = Header(
|
||||
default=None,
|
||||
example="username:password@host:port",
|
||||
examples=["username:password@host:port"],
|
||||
description="Override default proxy from env",
|
||||
),
|
||||
):
|
||||
@ -23,7 +23,6 @@ def get_sb(
|
||||
with SB(
|
||||
uc=True,
|
||||
headless=USE_HEADLESS,
|
||||
headed=not USE_HEADLESS,
|
||||
locale_code="en",
|
||||
ad_block=True,
|
||||
proxy=proxy or PROXY,
|
||||
|
Loading…
x
Reference in New Issue
Block a user