From a63ce64f4e6778ca6f08fb963e597284e38c56a9 Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Fri, 26 Jan 2024 17:04:15 +0100 Subject: [PATCH] Small fix for nonexistent style file --- scripts/tag_autocomplete_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tag_autocomplete_helper.py b/scripts/tag_autocomplete_helper.py index 3a4cefb..f2d8d79 100644 --- a/scripts/tag_autocomplete_helper.py +++ b/scripts/tag_autocomplete_helper.py @@ -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: