Small fix for nonexistent style file

This commit is contained in:
DominikDoom
2024-01-26 17:04:15 +01:00
parent d37e37acfa
commit a63ce64f4e

View File

@@ -683,7 +683,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: