Merge branch 'main' into feature-sort-by-frequent-use

This commit is contained in:
DominikDoom
2024-01-26 17:04:53 +01:00

View File

@@ -712,7 +712,7 @@ def api_tac(_: gr.Blocks, app: FastAPI):
global last_style_mtime
mtime = get_style_mtime()
if mtime > last_style_mtime:
if mtime is not None and mtime > last_style_mtime:
last_style_mtime = mtime
# Update temp file
if shared.prompt_styles is not None: