返回提交历史
Modified
g4f/cli/__init__.py
+1
-1
XFEstudio/gpt4free
fix: resolve TypeError when using --cookie-browsers CLI argument
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
5a3f54d7
代码差异
1 个文件
+1
-1
@@ -221,7 +221,7 @@ def run_api_args(args):
221
221
222
222
# Custom cookie browsers
223
223
if args.cookie_browsers:
224
cookies.BROWSERS = [cookies[b] for b in args.cookie_browsers]
224
cookies.BROWSERS = [b for b in cookies.BROWSERS if b.__name__ in args.cookie_browsers]
225
225
226
226
# Allow overriding the cookies directory from CLI
227
227
if getattr(args, "cookies_dir", None):