返回提交历史
Modified
g4f/gui/server/website.py
+1
-1
XFEstudio/gpt4free
Use tempfile if cookies dir is not writeable
4d3d717d
代码差异
1 个文件
+1
-1
@@ -29,7 +29,7 @@ def render(filename = "chat"):
29
29
is_tempfile = False
30
30
if not os.path.exists(cache_file):
31
31
if os.access(cache_file, os.W_OK):
32
cache_file = tempfile.NamedTemporaryFile(suffix=".html", delete=False)
32
cache_file = tempfile.NamedTemporaryFile(suffix=".html", delete=False).name
33
33
is_tempfile = True
34
34
else:
35
35
os.makedirs(cache_dir, exist_ok=True)