mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-04-22 15:47:11 +08:00
fix: resolve TypeError when using --cookie-browsers CLI argument
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@ def run_api_args(args):
|
||||
|
||||
# Custom cookie browsers
|
||||
if args.cookie_browsers:
|
||||
cookies.BROWSERS = [cookies[b] for b in args.cookie_browsers]
|
||||
cookies.BROWSERS = [b for b in cookies.BROWSERS if b.__name__ in args.cookie_browsers]
|
||||
|
||||
# Allow overriding the cookies directory from CLI
|
||||
if getattr(args, "cookies_dir", None):
|
||||
|
||||
Reference in New Issue
Block a user