Skip to content

Commit b5c59b7

Browse files
Deprecation warning on unused files (Comfy-Org#10387)
* only warn for unused files * include internal extensions
1 parent b4f30bd commit b5c59b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def deprecation_warning(request: web.Request, handler):
5656
"""Middleware to warn about deprecated frontend API paths"""
5757
path = request.path
5858

59-
if (path.startswith('/scripts/') or path.startswith('/extensions/core/')):
59+
if path.startswith("/scripts/ui") or path.startswith("/extensions/core/"):
6060
# Only warn once per unique file path
6161
if path not in _deprecated_paths_warned:
6262
_deprecated_paths_warned.add(path)

0 commit comments

Comments
 (0)