fix: resolve TypeError when using --cookie-browsers CLI argument

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-13 18:03:46 +00:00
parent 4b5f53d746
commit 5a3f54d734
+1 -1
View File
@@ -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):